This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 77626b7fc8 Add project_id as a templated variable in two BQ operators
(#24768)
77626b7fc8 is described below
commit 77626b7fc8ad57e71b3e93f81429424bdfa002a3
Author: Leah E. Cole <[email protected]>
AuthorDate: Wed Jul 13 16:46:45 2022 -0400
Add project_id as a templated variable in two BQ operators (#24768)
---
airflow/providers/google/cloud/operators/bigquery.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/airflow/providers/google/cloud/operators/bigquery.py
b/airflow/providers/google/cloud/operators/bigquery.py
index 4c78f6d5ba..b7e12dabce 100644
--- a/airflow/providers/google/cloud/operators/bigquery.py
+++ b/airflow/providers/google/cloud/operators/bigquery.py
@@ -1871,6 +1871,7 @@ class BigQueryUpsertTableOperator(BaseOperator):
'dataset_id',
'table_resource',
'impersonation_chain',
+ 'project_id',
)
template_fields_renderers = {"table_resource": "json"}
ui_color = BigQueryUIColors.TABLE.value
@@ -2086,6 +2087,7 @@ class BigQueryInsertJobOperator(BaseOperator):
"configuration",
"job_id",
"impersonation_chain",
+ "project_id",
)
template_ext: Sequence[str] = (
".json",