From 804d714ccb78f6d7e6fcd5d3cf4d91a08b4041b2 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:54:43 +0000 Subject: [PATCH] feat: add sourceColumnMatch support for External Tables --- src/types.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/types.d.ts b/src/types.d.ts index 2892e1e4..7b830309 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -1686,6 +1686,10 @@ declare namespace bigquery { * Optional. The schema for the data. Schema is required for CSV and JSON formats if autodetect is not on. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, Avro, ORC and Parquet formats. */ schema?: ITableSchema; + /** + * Optional. Controls the strategy used to match loaded columns to the schema. If not set, a sensible default is chosen based on how the schema is provided. If autodetect is used, then columns are matched by name. Otherwise, columns are matched by position. This is done to keep the behavior backward-compatible. + */ + sourceColumnMatch?: 'SOURCE_COLUMN_MATCH_UNSPECIFIED' | 'POSITION' | 'NAME'; /** * [Required] The data format. For CSV files, specify "CSV". For Google sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". For Apache Iceberg tables, specify "ICEBERG". For ORC files, specify "ORC". For Parquet files, specify "PARQUET". [Beta] For Google Cloud Bigtable, specify "BIGTABLE". */