- [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/PrestoJob#SCHEMA_REPRESENTATION)

A Dataproc job for running [Presto](https://prestosql.io/) queries. **IMPORTANT** : The [Dataproc Presto Optional Component](https://cloud.google.com/dataproc/docs/concepts/components/presto) 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 (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/LoggingConfig`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "queryFileUri": string, "queryList": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/QueryList`) } // End of mutually exclusive fields. } ``` |

| 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](https://prestodb.io/docs/current/sql/set-session.html) 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" }`. |
| `loggingConfig` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/LoggingConfig`)`` Optional. The runtime log config for job execution. |
| Required. The sequence of Presto queries to execute, specified as either an HCFS file URI or as a list of queries. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `queryFileUri` | `string` The HCFS URI of the script that contains SQL queries. |
| `queryList` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/QueryList`)`` A list of queries. |
| End of mutually exclusive fields. ||