Open antonsteenvoorden opened 3 months ago
Thanks for reporting.
It is possible that this field hasn't been added to our API specs yet. I have flagged this with the relevant team.
In the mean time you can work around the issue by using the databricks api
command and making a raw API call to /api/2.0/sql/config/warehouses
with the same body.
This seems to be related to the issue in Go SDK when fales boolean values marked as omitempty are being dropped from request body as a result of unmarshalling
Describe the issue
databricks warehouses set-workspace-warehouse-config
fails when providing a JSON. The error isenable_serverless_compute is required
even though this is part of the JSON on the root.Steps to reproduce the behavior
sql-warehouse-global-settings.json
with contentsdatabricks warehouses set-workspace-warehouse-config --json @./sql-warehouse-global-settings.json
The same happens when:
enable_serverless_compute
from the JSONenabled_warehouse_types
with{"enabled":true, "warehouse_type":"SERVERLESS"}
Expected Behavior
To have set the warehouse configuration. Also according to the API documentation this is not part of the payload.
Actual Behavior
It appears the JSON is validated against something undocumented and causes an error. Additionally, this is also not returned in the json when calling
databricks warehouses get-workspace-warehouse-config
.OS and CLI version
OS: MacOS Sonoma 14.4.1 Databricks-CLI: v0.222.0
Is this a regression?
Did this work in a previous version of the CLI? If so, which versions did you try?
Debug Logs