Class: Google::Apis::DataprocV1::TrinoJob
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::TrinoJob
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
A Dataproc job for running Trino (https://trino.io/) queries. IMPORTANT: The Dataproc Trino Optional Component (https://cloud.google.com/dataproc/docs/ concepts/components/trino) must be enabled when the cluster is created to submit a Trino job to the cluster.
Instance Attribute Summary collapse
-
#client_tags ⇒ Array<String>
Optional.
-
#continue_on_failure ⇒ Boolean
(also: #continue_on_failure?)
Optional.
-
#logging_config ⇒ Google::Apis::DataprocV1::LoggingConfig
The runtime logging config of the job.
-
#output_format ⇒ String
Optional.
-
#properties ⇒ Hash<String,String>
Optional.
-
#query_file_uri ⇒ String
The HCFS URI of the script that contains SQL queries.
-
#query_list ⇒ Google::Apis::DataprocV1::QueryList
A list of queries to run on a cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TrinoJob
constructor
A new instance of TrinoJob.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TrinoJob
Returns a new instance of TrinoJob.
6064 6065 6066 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6064 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_tags ⇒ Array<String>
Optional. Trino client tags to attach to this query
Corresponds to the JSON property clientTags
6026 6027 6028 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6026 def @client_tags end |
#continue_on_failure ⇒ Boolean Also known as: continue_on_failure?
Optional. Whether to continue executing queries if a query fails. The default
value is false. Setting to true can be useful when executing independent
parallel queries.
Corresponds to the JSON property continueOnFailure
6033 6034 6035 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6033 def continue_on_failure @continue_on_failure end |
#logging_config ⇒ Google::Apis::DataprocV1::LoggingConfig
The runtime logging config of the job.
Corresponds to the JSON property loggingConfig
6039 6040 6041 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6039 def logging_config @logging_config end |
#output_format ⇒ String
Optional. The format in which query output will be displayed. See the Trino
documentation for supported output formats
Corresponds to the JSON property outputFormat
6045 6046 6047 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6045 def output_format @output_format end |
#properties ⇒ Hash<String,String>
Optional. A mapping of property names to values. Used to set Trino session
properties (https://trino.io/docs/current/sql/set-session.html) Equivalent to
using the --session flag in the Trino CLI
Corresponds to the JSON property properties
6052 6053 6054 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6052 def properties @properties end |
#query_file_uri ⇒ String
The HCFS URI of the script that contains SQL queries.
Corresponds to the JSON property queryFileUri
6057 6058 6059 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6057 def query_file_uri @query_file_uri end |
#query_list ⇒ Google::Apis::DataprocV1::QueryList
A list of queries to run on a cluster.
Corresponds to the JSON property queryList
6062 6063 6064 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6062 def query_list @query_list end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6069 6070 6071 6072 6073 6074 6075 6076 6077 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6069 def update!(**args) @client_tags = args[:client_tags] if args.key?(:client_tags) @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure) @logging_config = args[:logging_config] if args.key?(:logging_config) @output_format = args[:output_format] if args.key?(:output_format) @properties = args[:properties] if args.key?(:properties) @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri) @query_list = args[:query_list] if args.key?(:query_list) end |