A Dataproc job for running Presto queries. IMPORTANT: The Dataproc Presto Optional Component must be enabled when the cluster is created to submit a Presto job to the cluster.
JSON representation
{"continueOnFailure": boolean,"outputFormat": string,"clientTags": [string],"properties": {string: string,...},"loggingConfig": {object (LoggingConfig)},// Union field queries can be only one of the following:"queryFileUri": string,"queryList": {object (QueryList)}// End of list of possible types for union field queries.}
Fields
continueOnFailure
boolean
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.
outputFormat
string
Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
clientTags[]
string
Optional. Presto client tags to attach to this query
properties
map (key: string, value: string)
Optional. A mapping of property names to values. Used to set Presto session properties Equivalent to using the --session flag in the Presto CLI
An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Optional. The runtime log config for job execution.
Union field queries. Required. The sequence of Presto queries to execute, specified as either an HCFS file URI or as a list of queries. queries can be only one of the following:
queryFileUri
string
The HCFS URI of the script that contains SQL queries.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-27 UTC."],[[["This page details how to run Presto queries using a Dataproc job, which requires the Dataproc Presto Optional Component to be enabled during cluster creation."],["The job configuration is represented in JSON, which can include parameters for handling query failures, specifying output formats, and tagging client queries."],["Presto session properties can be defined using a key-value map in the JSON configuration, which is equivalent to using the --session flag in the Presto command-line interface."],["The `queries` field in the JSON is mandatory and allows for the execution of one or more Presto queries, either from a specified file URI or as a list of queries provided directly."],["The runtime configuration of the jobs logs can be set using the `loggingConfig` field, which takes an object as an input."]]],[]]