@@ -879,7 +879,7 @@ class BigQueryCreateEmptyTableOperator(BaseOperator):
879
879
'view' ,
880
880
'impersonation_chain' ,
881
881
)
882
-
882
+ template_fields_renderers = { "table_resource" : "json" }
883
883
ui_color = BigQueryUIColors .TABLE .value
884
884
885
885
# pylint: disable=too-many-arguments
@@ -1074,6 +1074,7 @@ class BigQueryCreateExternalTableOperator(BaseOperator):
1074
1074
'table_resource' ,
1075
1075
'impersonation_chain' ,
1076
1076
)
1077
+ template_fields_renderers = {"table_resource" : "json" }
1077
1078
ui_color = BigQueryUIColors .TABLE .value
1078
1079
1079
1080
# pylint: disable=too-many-arguments,too-many-locals
@@ -1369,6 +1370,7 @@ class BigQueryCreateEmptyDatasetOperator(BaseOperator):
1369
1370
'dataset_reference' ,
1370
1371
'impersonation_chain' ,
1371
1372
)
1373
+ template_fields_renderers = {"dataset_reference" : "json" }
1372
1374
ui_color = BigQueryUIColors .DATASET .value
1373
1375
1374
1376
@apply_defaults
@@ -1615,6 +1617,7 @@ class BigQueryPatchDatasetOperator(BaseOperator):
1615
1617
'project_id' ,
1616
1618
'impersonation_chain' ,
1617
1619
)
1620
+ template_fields_renderers = {"dataset_resource" : "json" }
1618
1621
ui_color = BigQueryUIColors .DATASET .value
1619
1622
1620
1623
@apply_defaults
@@ -1705,6 +1708,7 @@ class BigQueryUpdateDatasetOperator(BaseOperator):
1705
1708
'project_id' ,
1706
1709
'impersonation_chain' ,
1707
1710
)
1711
+ template_fields_renderers = {"dataset_resource" : "json" }
1708
1712
ui_color = BigQueryUIColors .DATASET .value
1709
1713
1710
1714
@apply_defaults
@@ -1876,6 +1880,7 @@ class BigQueryUpsertTableOperator(BaseOperator):
1876
1880
'table_resource' ,
1877
1881
'impersonation_chain' ,
1878
1882
)
1883
+ template_fields_renderers = {"table_resource" : "json" }
1879
1884
ui_color = BigQueryUIColors .TABLE .value
1880
1885
1881
1886
@apply_defaults
@@ -1993,6 +1998,7 @@ class BigQueryInsertJobOperator(BaseOperator):
1993
1998
"impersonation_chain" ,
1994
1999
)
1995
2000
template_ext = (".json" ,)
2001
+ template_fields_renderers = {"configuration" : "json" }
1996
2002
ui_color = BigQueryUIColors .QUERY .value
1997
2003
1998
2004
def __init__ (
0 commit comments