-
Notifications
You must be signed in to change notification settings - Fork 82
Can not define tasks as a variable and then overwrite them #2436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
🆙 |
Hi @keviloper , thanks for the report. This is a known issue: we currently first merge targets then resolve variables. This works when variables are scalar but breaks when variables are complex. We have a proposal internally on how to address it, we're going to discuss the priority of it. |
Describe the issue
I have two jobs that will share common tasks. This is why I created a complex variable for those tasks. Additionally I want to overwrite some cluster settings per target. With that setup I am getting an error:
Error: cannot merge string with sequence
Configuration
Here is the minimal configuration that will produce the error.
When I replace the tasks keys with the following, then it will work but we have to go through every index of the sequence.
Steps to reproduce the behavior
databricks bundle validate
ordatabricks bundle deploy
Expected Behavior
Validation and deployment should work, because the variable is a sequence and not a string
Actual Behavior
We are getting an error:
Error: cannot merge string with sequence
OS and CLI version
OS: Ubuntu 22
Databricks CLI v0.243.0
Is this a regression?
Did this work in a previous version of the CLI? - No
Debug Logs
The text was updated successfully, but these errors were encountered: