Vamsi-klu opened a new pull request, #68519: URL: https://github.com/apache/airflow/pull/68519
Fix Databricks operators so templated `json` payloads are rendered before the final Databricks request payload is built. This updates `DatabricksCreateJobsOperator`, `DatabricksSubmitRunOperator`, and `DatabricksRunNowOperator` to: - assign templated constructor fields directly in `__init__` - build and validate the final payload in `execute()` - accept rendered mappings, JSON strings, Python-literal dict strings, and `XComArg` values - merge rendered named parameters after `json`, so named arguments keep precedence - preserve existing validation for dbt/git source, pipeline id/name, job id/name, deferrable execution, and repair-run paths This also adds regression coverage for templated named parameters and `XComArg`/classic Jinja payloads. closes: #35433 related: #40788 Validation: - `uv run --project providers/databricks pytest providers/databricks/tests/unit/databricks/operators/test_databricks.py -xvs` - `prek run --from-ref upstream/main --stage pre-commit` - `prek run --from-ref upstream/main --stage manual` - `breeze ci selective-check --commit-ref HEAD` - `breeze testing providers-tests --test-type "Providers[databricks]"` Note: `breeze selective-checks --commit-ref HEAD` is documented in `AGENTS.md`/selective-checks docs, but the current Breeze command is `breeze ci selective-check --commit-ref HEAD`. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes - Codex (GPT-5) Generated-by: Codex (GPT-5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- Drafted-by: Codex (GPT-5) (no human review before posting) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
