Class Query (0.3.0)

Query(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes a query job, which executes a SQL-like query.

Attributes

NameDescription
query str
The SQL query to run.
destination_table google.cloud.bigquery_logging_v1.types.TableName
The table where results are written.
create_disposition str
Describes when a job is allowed to create a table: CREATE_IF_NEEDED, CREATE_NEVER.
write_disposition str
Describes how writes affect existing tables: WRITE_TRUNCATE, WRITE_APPEND, WRITE_EMPTY.
default_dataset google.cloud.bigquery_logging_v1.types.DatasetName
If a table name is specified without a dataset in a query, this dataset will be added to table name.
table_definitions Sequence[google.cloud.bigquery_logging_v1.types.TableDefinition]
Describes data sources outside BigQuery, if needed.
query_priority str
Describes the priority given to the query: QUERY_INTERACTIVE or QUERY_BATCH.
destination_table_encryption google.cloud.bigquery_logging_v1.types.EncryptionInfo
Result table encryption information. Set when non-default encryption is used.
statement_type str
Type of the statement (e.g. SELECT, INSERT, CREATE_TABLE, CREATE_MODEL..)