JobConfigurationQueryArgs

data class JobConfigurationQueryArgs(val allowLargeResults: Output<Boolean>? = null, val clustering: Output<ClusteringArgs>? = null, val connectionProperties: Output<List<ConnectionPropertyArgs>>? = null, val continuous: Output<Boolean>? = null, val createDisposition: Output<String>? = null, val createSession: Output<Boolean>? = null, val defaultDataset: Output<DatasetReferenceArgs>? = null, val destinationEncryptionConfiguration: Output<EncryptionConfigurationArgs>? = null, val destinationTable: Output<TableReferenceArgs>? = null, val flattenResults: Output<Boolean>? = null, val maximumBillingTier: Output<Int>? = null, val maximumBytesBilled: Output<String>? = null, val parameterMode: Output<String>? = null, val preserveNulls: Output<Boolean>? = null, val priority: Output<String>? = null, val query: Output<String>? = null, val queryParameters: Output<List<QueryParameterArgs>>? = null, val rangePartitioning: Output<RangePartitioningArgs>? = null, val schemaUpdateOptions: Output<List<String>>? = null, val tableDefinitions: Output<Map<String, String>>? = null, val timePartitioning: Output<TimePartitioningArgs>? = null, val useLegacySql: Output<Boolean>? = null, val useQueryCache: Output<Boolean>? = null, val userDefinedFunctionResources: Output<List<UserDefinedFunctionResourceArgs>>? = null, val writeDisposition: Output<String>? = null) : ConvertibleToJava<JobConfigurationQueryArgs>

Constructors

Link copied to clipboard
constructor(allowLargeResults: Output<Boolean>? = null, clustering: Output<ClusteringArgs>? = null, connectionProperties: Output<List<ConnectionPropertyArgs>>? = null, continuous: Output<Boolean>? = null, createDisposition: Output<String>? = null, createSession: Output<Boolean>? = null, defaultDataset: Output<DatasetReferenceArgs>? = null, destinationEncryptionConfiguration: Output<EncryptionConfigurationArgs>? = null, destinationTable: Output<TableReferenceArgs>? = null, flattenResults: Output<Boolean>? = null, maximumBillingTier: Output<Int>? = null, maximumBytesBilled: Output<String>? = null, parameterMode: Output<String>? = null, preserveNulls: Output<Boolean>? = null, priority: Output<String>? = null, query: Output<String>? = null, queryParameters: Output<List<QueryParameterArgs>>? = null, rangePartitioning: Output<RangePartitioningArgs>? = null, schemaUpdateOptions: Output<List<String>>? = null, tableDefinitions: Output<Map<String, String>>? = null, timePartitioning: Output<TimePartitioningArgs>? = null, useLegacySql: Output<Boolean>? = null, useQueryCache: Output<Boolean>? = null, userDefinedFunctionResources: Output<List<UserDefinedFunctionResourceArgs>>? = null, writeDisposition: Output<String>? = null)

Properties

Link copied to clipboard
val allowLargeResults: Output<Boolean>? = null

Optional If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. For standard SQL queries, this flag is ignored and large results are always allowed. However, you must still set destinationTable when result size exceeds the allowed maximum response size.

Link copied to clipboard
val clustering: Output<ClusteringArgs>? = null

Beta Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered.

Link copied to clipboard

Connection properties.

Link copied to clipboard
val continuous: Output<Boolean>? = null

Optional Specifies whether the query should be executed as a continuous query. The default value is false.

Link copied to clipboard
val createDisposition: Output<String>? = null

Optional Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.

Link copied to clipboard
val createSession: Output<Boolean>? = null

If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode.

Link copied to clipboard

Optional Specifies the default dataset to use for unqualified table names in the query. Note that this does not alter behavior of unqualified dataset names.

Link copied to clipboard

Custom encryption configuration (e.g., Cloud KMS keys).

Link copied to clipboard

Optional Describes the table where the query results should be stored. If not present, a new table will be created to store the results. This property must be set for large results that exceed the maximum response size.

Link copied to clipboard
val flattenResults: Output<Boolean>? = null

Optional If true and query uses legacy SQL dialect, flattens all nested and repeated fields in the query results. allowLargeResults must be true if this is set to false. For standard SQL queries, this flag is ignored and results are never flattened.

Link copied to clipboard
val maximumBillingTier: Output<Int>? = null

Optional Limits the billing tier for this job. Queries that have resource usage beyond this tier will fail (without incurring a charge). If unspecified, this will be set to your project default.

Link copied to clipboard
val maximumBytesBilled: Output<String>? = null

Optional Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default.

Link copied to clipboard
val parameterMode: Output<String>? = null

Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query.

Link copied to clipboard
val preserveNulls: Output<Boolean>? = null

Deprecated This property is deprecated.

Link copied to clipboard
val priority: Output<String>? = null

Optional Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. The default value is INTERACTIVE.

Link copied to clipboard
val query: Output<String>? = null

Required SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or standard SQL.

Link copied to clipboard

Query parameters for standard SQL queries.

Link copied to clipboard

TrustedTester Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.

Link copied to clipboard
val schemaUpdateOptions: Output<List<String>>? = null

Allows the schema of the destination table to be updated as a side effect of the query job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.

Link copied to clipboard
val tableDefinitions: Output<Map<String, String>>? = null

Optional If querying an external data source outside of BigQuery, describes the data format, location and other properties of the data source. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.

Link copied to clipboard

Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.

Link copied to clipboard
val useLegacySql: Output<Boolean>? = null

Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false.

Link copied to clipboard
val useQueryCache: Output<Boolean>? = null

Optional Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified. The default value is true.

Link copied to clipboard

Describes user-defined function resources used in the query.

Link copied to clipboard
val writeDisposition: Output<String>? = null

Optional Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data and uses the schema from the query result. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.

Functions

Link copied to clipboard
open override fun toJava(): JobConfigurationQueryArgs