Table External Data Configuration
Constructors
Types
Properties
The connection specifying the credentials to be used to read external storage, such as Azure Blob, Cloud Storage, or S3. The connection_id
can have the form {{project}}.{{location}}.{{connection_id}}
or projects/{{project}}/locations/{{location}}/connections/{{connection_id}}
. ~>NOTE: If you set external_data_configuration.connection_id
, the table schema must be specified using the top-level schema
field documented above.
Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
A JSON schema for the external table. Schema is required for CSV and JSON formats if autodetect is not on. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, Avro, Iceberg, ORC and Parquet formats. ~>NOTE: Because this field expects a JSON string, any changes to the string will create a diff, even if the JSON itself hasn't changed. Furthermore drift for this field cannot not be detected because BigQuery only uses this schema to compute the effective schema for the table, therefore any changes on the configured value will force the table to be recreated. This schema is effectively only applied when creating a table from an external datasource, after creation the computed schema will be stored in google_bigquery_table.schema
~>NOTE: If you set external_data_configuration.connection_id
, the table schema must be specified using the top-level schema
field documented above.
The data format. Please see sourceFormat under ExternalDataConfiguration in Bigquery's public API documentation for supported formats. To use "GOOGLE_SHEETS" the scopes
must include "https://www.googleapis.com/auth/drive.readonly".