Skip to content
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

Databricks CLI error with version 0.222.0 #1544

Closed
erkan-aiml opened this issue Jun 27, 2024 · 3 comments · Fixed by #1552
Closed

Databricks CLI error with version 0.222.0 #1544

erkan-aiml opened this issue Jun 27, 2024 · 3 comments · Fixed by #1552
Assignees
Labels
Bug Something isn't working DABs DABs related issues

Comments

@erkan-aiml
Copy link

erkan-aiml commented Jun 27, 2024

Databricks CLI return the following error with version 0.222.0 from a GitHub workflow
The same setup and command works with version 0.221.1

Command: databricks bundle deploy --target dev --var="var_name=var_value"

Error:

panic: reflect: call of reflect.Value.Set on zero Value

goroutine 1 [running]:
reflect.flag.mustBeExportedSlow(..)
	reflect/value.go:247 ..
reflect.flag.mustBeExported(...)
	reflect/value.go:241
reflect.Value.Set({..})
	reflect/value.go:2255 ..
github.com/databricks/cli/libs/dyn/convert.toTypedInterface( ...})
	github.com/databricks/cli/libs/dyn/convert/to_typed.go:285 ..
github.com/databricks/cli/libs/dyn/convert.ToTyped({..})
	github.com/databricks/cli/libs/dyn/convert/to_typed.go:50 ..
@pietern pietern transferred this issue from databricks/databricks-cli Jul 1, 2024
@pietern
Copy link
Contributor

pietern commented Jul 1, 2024

Thanks for reporting. Do you happen to have a (default) value configured for this variable in your bundle definition?

@pietern pietern added Bug Something isn't working DABs DABs related issues labels Jul 1, 2024
@erkan-aiml
Copy link
Author

erkan-aiml commented Jul 1, 2024

Thanks for reporting. Do you happen to have a (default) value configured for this variable in your bundle definition?

Thanks for looking at this, Pieter. Yes, there is a default value but set as empty. Note that this works when I switch to version 0.221.1.

@andrewnester
Copy link
Contributor

Thanks for reporting the issue! The fix has been merged and will be released in the upcoming release this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working DABs DABs related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants