Skip to content

Commit 0a2d0d1

Browse files
authored
Added template_ext = ('.json') to databricks operators #18925 (#21530)
1 parent 5590e98 commit 0a2d0d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

airflow/providers/databricks/operators/databricks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ class DatabricksSubmitRunOperator(BaseOperator):
246246

247247
# Used in airflow.models.BaseOperator
248248
template_fields: Sequence[str] = ('json',)
249+
template_ext: Sequence[str] = ('.json',)
249250
# Databricks brand color (blue) under white text
250251
ui_color = '#1CB1C2'
251252
ui_fgcolor = '#fff'
@@ -479,6 +480,7 @@ class DatabricksRunNowOperator(BaseOperator):
479480

480481
# Used in airflow.models.BaseOperator
481482
template_fields: Sequence[str] = ('json',)
483+
template_ext: Sequence[str] = ('.json',)
482484
# Databricks brand color (blue) under white text
483485
ui_color = '#1CB1C2'
484486
ui_fgcolor = '#fff'

0 commit comments

Comments
 (0)