cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

if-else statement in DAB YAML file

dc-rnc
New Contributor II

Hi.

Is it possible to use a "better" way to override the "git_branch" key's value on the right file (which is the resource-yaml-file)?

Or a different way, like an "if-else" statement. I'd like to have it all in the resource-yaml-file instead of overriding from the "databricks.yml" file.

dcrnc_0-1738601704946.png

Thank you. Regards.

1 ACCEPTED SOLUTION

Accepted Solutions

Alberto_Umana
Databricks Employee
Databricks Employee

I think your approach is correct using targets and ${var.git_branch} variables. At the moment there is no if-else statement, but will investigate internally if there is a better way.

View solution in original post

1 REPLY 1

Alberto_Umana
Databricks Employee
Databricks Employee

I think your approach is correct using targets and ${var.git_branch} variables. At the moment there is no if-else statement, but will investigate internally if there is a better way.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now