Closed ChintanpatelTH closed 5 days ago
Variable substitutions stopped working from target. If target has variables with description then It's not working.
For example : If I provide description to name variable. It doesn't work. If I remove description it works.
name
targets: dev: mode: development default: true workspace: host: https://dbc-e27abc0b-645c.cloud.databricks.com variables: name: description: "name of job" default: "job_1"
include: - resources/*.yml targets: dev: mode: development default: true workspace: host: https://dbc-e27abc0b-645c.cloud.databricks.com variables: name: description: "name of job" default: "job_1"
# The main job for my_project. variables: name: description: Job name resources: jobs: my_project_job: name: ${var.name}
Please list the steps required to reproduce the issue, for example:
databricks bundle validate --target dev
cannot interpolate non-string value: ${var.name}
Validation and deployment should work after replacing variable name value.
I'm getting following error for bundle validate and bundle deploy commands cannot interpolate non-string value: ${var.name}
bundle validate
bundle deploy
Operating System : Mac 15.0 CLI Version : v0.228.0
Yes It was working with v0.223.2 when I checked last time.
Output logs if you run the command with debug logs enabled. Example: databricks bundle deploy --log-level=debug. Redact if needed
@andrewnester Thank you! When this fix will be available ?
It will be released in the next CLI release most likely next week
Describe the issue
Variable substitutions stopped working from target. If target has variables with description then It's not working.
For example : If I provide description to
name
variable. It doesn't work. If I remove description it works.databricks.yml
Configuration
databricks.yml
resources/project.yml
Steps to reproduce the behavior
Please list the steps required to reproduce the issue, for example:
databricks bundle validate --target dev
cannot interpolate non-string value: ${var.name}
Expected Behavior
Validation and deployment should work after replacing variable
name
value.Actual Behavior
I'm getting following error for
bundle validate
andbundle deploy
commandscannot interpolate non-string value: ${var.name}
OS and CLI version
Operating System : Mac 15.0 CLI Version : v0.228.0
Is this a regression?
Yes It was working with v0.223.2 when I checked last time.
Debug Logs
Output logs if you run the command with debug logs enabled. Example: databricks bundle deploy --log-level=debug. Redact if needed