class Google::Apis::DataprocV1beta2::PrestoJob

A Dataproc job for running Presto (prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (cloud.google.com/dataproc/docs/ concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster.

Attributes

client_tags[RW]

Optional. Presto client tags to attach to this query Corresponds to the JSON property `clientTags` @return [Array<String>]

continue_on_failure[RW]

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` @return [Boolean]

continue_on_failure?[RW]

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` @return [Boolean]

logging_config[RW]

The runtime logging config of the job. Corresponds to the JSON property `loggingConfig` @return [Google::Apis::DataprocV1beta2::LoggingConfig]

output_format[RW]

Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats Corresponds to the JSON property `outputFormat` @return [String]

properties[RW]

Optional. A mapping of property names to values. Used to set Presto session properties (prestodb.io/docs/current/sql/set-session.html) Equivalent to using the –session flag in the Presto CLI Corresponds to the JSON property `properties` @return [Hash<String,String>]

query_file_uri[RW]

The HCFS URI of the script that contains SQL queries. Corresponds to the JSON property `queryFileUri` @return [String]

query_list[RW]

A list of queries to run on a cluster. Corresponds to the JSON property `queryList` @return [Google::Apis::DataprocV1beta2::QueryList]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1beta2/classes.rb, line 2714
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1beta2/classes.rb, line 2719
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