From a429a8422b15eaf1560d8489f60656cb6a8a03b7 Mon Sep 17 00:00:00 2001 From: Justin Bandoro Date: Thu, 8 Dec 2022 11:54:52 -0800 Subject: [PATCH] Add table_resource to template fields for BigQueryCreateEmptyTableOperator --- airflow/providers/google/cloud/operators/bigquery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow/providers/google/cloud/operators/bigquery.py b/airflow/providers/google/cloud/operators/bigquery.py index b167038388c5b..87419612d1eb1 100644 --- a/airflow/providers/google/cloud/operators/bigquery.py +++ b/airflow/providers/google/cloud/operators/bigquery.py @@ -1158,7 +1158,7 @@ class BigQueryCreateEmptyTableOperator(BaseOperator): :param table_id: The Name of the table to be created. (templated) :param table_resource: Table resource as described in documentation: https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#Table - If provided all other parameters are ignored. + If provided all other parameters are ignored. (templated) :param schema_fields: If set, the schema field list as defined here: https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load.schema @@ -1256,6 +1256,7 @@ class BigQueryCreateEmptyTableOperator(BaseOperator): template_fields: Sequence[str] = ( "dataset_id", "table_id", + "table_resource", "project_id", "gcs_schema_object", "labels",