It would be great if we can allow CreateDatabricksWorkflowOperator to support Jinja templating for job_clusters attribute. This will allow us to dynamically render cluster configuration at runtime based on the context, such as spark env variables or spark configurations.
I have an Airflow Dag. In this dag, I am trying to use output of upstream task in job_clusters attribute while defining the DatabricksWorkflowTaskGroup. In current implementation, output of upstream task doesn't get jinjaified at runtime.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Description
It would be great if we can allow
CreateDatabricksWorkflowOperator
to support Jinja templating forjob_clusters
attribute. This will allow us to dynamically render cluster configuration at runtime based on the context, such as spark env variables or spark configurations.https://github.com/apache/airflow/blob/e0bddbc438872277ca8de7fb794285cf546ddc0b/airflow/providers/databricks/operators/databricks_workflow.py#L96
Use case/motivation
I have an Airflow Dag. In this dag, I am trying to use output of upstream task in
job_clusters
attribute while defining theDatabricksWorkflowTaskGroup
. In current implementation, output of upstream task doesn't get jinjaified at runtime.Sample:
Related issues
No response
Are you willing to submit a PR?
Code of Conduct