Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion airflow/providers/google/cloud/operators/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ class BigQueryCreateEmptyTableOperator(BaseOperator):
'view',
'impersonation_chain',
)

template_fields_renderers = {"table_resource": "json"}
ui_color = BigQueryUIColors.TABLE.value

# pylint: disable=too-many-arguments
Expand Down Expand Up @@ -1074,6 +1074,7 @@ class BigQueryCreateExternalTableOperator(BaseOperator):
'table_resource',
'impersonation_chain',
)
template_fields_renderers = {"table_resource": "json"}
ui_color = BigQueryUIColors.TABLE.value

# pylint: disable=too-many-arguments,too-many-locals
Expand Down Expand Up @@ -1369,6 +1370,7 @@ class BigQueryCreateEmptyDatasetOperator(BaseOperator):
'dataset_reference',
'impersonation_chain',
)
template_fields_renderers = {"dataset_reference": "json"}
ui_color = BigQueryUIColors.DATASET.value

@apply_defaults
Expand Down Expand Up @@ -1615,6 +1617,7 @@ class BigQueryPatchDatasetOperator(BaseOperator):
'project_id',
'impersonation_chain',
)
template_fields_renderers = {"dataset_resource": "json"}
ui_color = BigQueryUIColors.DATASET.value

@apply_defaults
Expand Down Expand Up @@ -1705,6 +1708,7 @@ class BigQueryUpdateDatasetOperator(BaseOperator):
'project_id',
'impersonation_chain',
)
template_fields_renderers = {"dataset_resource": "json"}
ui_color = BigQueryUIColors.DATASET.value

@apply_defaults
Expand Down Expand Up @@ -1876,6 +1880,7 @@ class BigQueryUpsertTableOperator(BaseOperator):
'table_resource',
'impersonation_chain',
)
template_fields_renderers = {"table_resource": "json"}
ui_color = BigQueryUIColors.TABLE.value

@apply_defaults
Expand Down Expand Up @@ -1993,6 +1998,7 @@ class BigQueryInsertJobOperator(BaseOperator):
"impersonation_chain",
)
template_ext = (".json",)
template_fields_renderers = {"configuration": "json"}
ui_color = BigQueryUIColors.QUERY.value

def __init__(
Expand Down
1 change: 1 addition & 0 deletions airflow/providers/google/cloud/operators/dataproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,7 @@ class DataprocInstantiateInlineWorkflowTemplateOperator(BaseOperator):
"""

template_fields = ['template', 'impersonation_chain']
template_fields_renderers = {"template": "json"}

@apply_defaults
def __init__(
Expand Down