Skip to main content
Version: 3.0.0

BigQuery Connection

Connection to a Google BigQuery data warehouse.

Examples​

connection:
bigquery:
project: my-gcp-project
dataset: my-dataset
location: US

BigQueryConnection​

info

BigQueryConnection is defined beneath the following ancestor nodes in the YAML structure:

Below are the properties for the BigQueryConnection. Each property links to the specific details section further down in this page.

PropertyDefaultTypeRequiredDescription
descriptionstring
NoA brief description of what the model does.
metadataResourceMetadata
NoMeta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.
namestringYesThe name of the model
bigqueryBigQueryConnectionOptionsYesThe BigQuery connection options.

Property Details​

Connection​

A connection to a data source/sink.

PropertyDefaultTypeRequiredDescription
connectionOne of:
  S3Connection
  GcsConnection
  AbfsConnection
  LocalFileConnection
  SnowflakeConnection
  BigQueryConnection
  MSSQLConnection
  MySQLConnection
  OracleConnection
  PostgresConnection
  HttpConnection
  DuckDBConnection
  SynapseConnection
  SFTPConnection
  FabricConnection
  DatabricksConnection
YesThe connection to the data system.

BigQueryConnectionOptions​

BigQuery connection options.

PropertyDefaultTypeRequiredDescription
max_query_lengthinteger
NoThe maximum query length to allow.
max_concurrent_queriesinteger
NoThe maximum number of concurrent queries to allow.
max_combined_sql_statementsinteger
NoThe maximum number of combined SQL statements to allow.
projectstringYesThe Google Cloud project to connect to.
datasetstring
NoThe BigQuery dataset to connect to.
keystring
NoThe GCP service account credentials to use for the BigQuery connection.
locationstring
NoThe BigQuery location to use.
create_dataset_if_not_existsFalsebooleanNoA boolean flag indicating whether to create the dataset if it does not exist.
default_table_expiration_daysinteger
NoSpecifies the default expiration time, in days, for tables in this dataset. You can override this value when you create a table.
cast_nano_timestap_to_micro_timestampTruebooleanNoControls automatic conversion of nanosecond timestamps to BigQuery timestamps. When loading parquet files containing nanosecond-precision timestamps, BigQuery stores them as INT64 since it only supports microsecond precision. When enabled, this setting will automatically cast these INT64 values to timestamps, with some precision loss (nanoseconds to microseconds).

ResourceMetadata​

Meta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.

PropertyDefaultTypeRequiredDescription
sourceResourceLocation
NoThe origin or source information for the resource.
source_event_uuidstring
NoUUID of the event that is associated with creation of this resource.

ResourceLocation​

The origin or source information for the resource.

PropertyDefaultTypeRequiredDescription
pathstringYesPath within repository files where the resource is defined.
first_line_numberinteger
NoFirst line number within path file where the resource is defined.