Skip to content

Commit

Permalink
implements #22859 - Add .sql as templatable extension (#22920)
Browse files Browse the repository at this point in the history
  • Loading branch information
LennyKLB authored Apr 11, 2022
1 parent 9c9272d commit 27b3e31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion airflow/providers/google/cloud/operators/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,10 @@ class BigQueryInsertJobOperator(BaseOperator):
"job_id",
"impersonation_chain",
)
template_ext: Sequence[str] = (".json",)
template_ext: Sequence[str] = (
".json",
".sql",
)
template_fields_renderers = {"configuration": "json", "configuration.query.query": "sql"}
ui_color = BigQueryUIColors.QUERY.value

Expand Down

0 comments on commit 27b3e31

Please sign in to comment.
  翻译: