-
Notifications
You must be signed in to change notification settings - Fork 69
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
Update Go SDK to 0.23.0 and use custom marshaller #772
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one nit, will give official stamp once we remove go.mod changes.
ddbbcdc
to
af8ffab
Compare
af8ffab
to
90e48c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one micronit, otherwise LGTM! Feel free to address and click the merge when ready button.
Note: this release includes a fix for the issue where zero values (for example `num_workers: 0`) were not included in the request body. CLI: * Use already instantiated WorkspaceClient in sync command ([#867](#867)). Bundles: * Support Unity Catalog Registered Models in bundles ([#846](#846)). * Fixed merging task libraries from targets ([#868](#868)). * Add alias for mlops-stack template URL ([#869](#869)). API Changes: * Changed `databricks account billable-usage download` command to start returning output. * Changed `databricks account storage-credentials delete` command with new required argument order. * Changed `databricks account storage-credentials get` command with new required argument order. * Changed `databricks account storage-credentials update` command with new required argument order. * Added `databricks workspace-bindings get-bindings` command. * Added `databricks workspace-bindings update-bindings` command. * Removed `databricks account network-policy` command group. * Changed `databricks ip-access-lists list` command to return output. OpenAPI commit 493a76554afd3afdd15dc858773d01643f80352a (2023-10-12) Dependency updates: * Update Go SDK to 0.23.0 and use custom marshaller ([#772](#772)). * Bump Terraform provider to v1.28.0 ([#871](#871)). * Bump golang.org/x/net from 0.16.0 to 0.17.0 ([#863](#863)). * Bump github.com/hashicorp/hc-install from 0.6.0 to 0.6.1 ([#870](#870)).
Note: this release includes a fix for the issue where zero values (for example `num_workers: 0`) were not included in the request body. CLI: * Use already instantiated WorkspaceClient in sync command ([#867](#867)). Bundles: * Support Unity Catalog Registered Models in bundles ([#846](#846)). * Fixed merging task libraries from targets ([#868](#868)). * Add alias for mlops-stack template URL ([#869](#869)). API Changes: * Changed `databricks account billable-usage download` command to start returning output. * Changed `databricks account storage-credentials delete` command with new required argument order. * Changed `databricks account storage-credentials get` command with new required argument order. * Changed `databricks account storage-credentials update` command with new required argument order. * Added `databricks workspace-bindings get-bindings` command. * Added `databricks workspace-bindings update-bindings` command. * Removed `databricks account network-policy` command group. * Changed `databricks ip-access-lists list` command to return output. OpenAPI commit 493a76554afd3afdd15dc858773d01643f80352a (2023-10-12) Dependency updates: * Update Go SDK to 0.23.0 and use custom marshaller ([#772](#772)). * Bump Terraform provider to v1.28.0 ([#871](#871)). * Bump golang.org/x/net from 0.16.0 to 0.17.0 ([#863](#863)). * Bump github.com/hashicorp/hc-install from 0.6.0 to 0.6.1 ([#870](#870)).
## Changes The update to the Go SDK v0.23.0 in #772 included a change to make the billable usage API return its streaming response. This still did not make the command print out the CSV returned by the API, however. To do so, we call `cmdio.RenderReader` in case the response is a byte stream. Note: there is an opportunity to parse the CSV and return JSON if requested, but that is out of scope for this PR (it is a rather big customization of the command). Fixes #574. ## Tests Manually confirmed that `databricks account billable-usage download` now returns CSV.
Changes
Update Go SDK to 0.23.0 and use custom marshaller.
Tests
Run unit tests
Run nightly
Manual test:
with
Main branch:
This branch: