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
12 changes: 12 additions & 0 deletions providers/databricks/docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
Changelog
---------

.. note::
``DatabricksCreateJobsOperator``, ``DatabricksSubmitRunOperator`` and ``DatabricksRunNowOperator``
now assemble and validate their Databricks request payload at task **execution** time instead of
at operator construction time. This is required so that templated ``json`` payloads and templated
named parameters (including values pulled from XCom) are rendered before the payload is built.
As a result, payload-validation errors that previously surfaced while the Dag was parsed — e.g.
``git_source is required for dbt_task``, ``'pipeline_name' is not allowed in conjunction with
'pipeline_id'``, ``Argument 'job_name' is not allowed with argument 'job_id'`` and invalid
payload types — now surface when the task runs. A templated ``json`` payload may now also resolve
to a Python-dict-literal string (what classic Jinja produces when rendering a dict pulled from
XCom), in addition to a mapping or a JSON string.

7.16.0
......

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ class DatabricksSqlExecutionError(AirflowException):

class DatabricksSqlExecutionTimeout(DatabricksSqlExecutionError):
"""Raised when a sql execution times out."""


class DatabricksOperatorPayloadError(AirflowException):
"""Raised when a Databricks operator payload is invalid."""
Loading
Loading