Skip to content

Commit

Permalink
Modify template_fields of DatabricksSqlOperator to support parent…
Browse files Browse the repository at this point in the history
… class fields (#32253)
  • Loading branch information
eladkal committed Jun 29, 2023
1 parent b301d66 commit 6b4350e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions airflow/providers/databricks/operators/databricks_sql.py
Expand Up @@ -70,14 +70,11 @@ class DatabricksSqlOperator(SQLExecuteQueryOperator):
:param csv_params: parameters that will be passed to the ``csv.DictWriter`` class used to write CSV data.
"""

template_fields: Sequence[str] = (
"sql",
"_output_path",
"schema",
"catalog",
"http_headers",
"databricks_conn_id",
template_fields: Sequence[str] = tuple(
{"_output_path", "schema", "catalog", "http_headers", "databricks_conn_id"}
| set(SQLExecuteQueryOperator.template_fields)
)

template_ext: Sequence[str] = (".sql",)
template_fields_renderers = {"sql": "sql"}

Expand Down

0 comments on commit 6b4350e

Please sign in to comment.