Skip to content

Commit

Permalink
Add project_id as a templated variable in two BQ operators
Browse files Browse the repository at this point in the history
  • Loading branch information
leahecole committed Jul 7, 2022
1 parent bdc31bd commit 6d9fd1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/providers/google/cloud/operators/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ class BigQueryUpsertTableOperator(BaseOperator):
'dataset_id',
'table_resource',
'impersonation_chain',
'project_id'
)
template_fields_renderers = {"table_resource": "json"}
ui_color = BigQueryUIColors.TABLE.value
Expand Down Expand Up @@ -2068,6 +2069,7 @@ class BigQueryInsertJobOperator(BaseOperator):
"configuration",
"job_id",
"impersonation_chain",
'project_id'
)
template_ext: Sequence[str] = (
".json",
Expand Down

0 comments on commit 6d9fd1d

Please sign in to comment.