Uh oh!
There was an error while loading. Please reload this page.
Update Go SDK to 0.23.0 and use custom marshaller - #772
Merged
Conversation
hectorcast-db
commented
Sep 13, 2023
ContributorAuthor
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mgyucht
reviewed
Sep 22, 2023
mgyucht
left a comment
Contributor
There was a problem hiding this comment.
LGTM with one nit, will give official stamp once we remove go.mod changes.
Uh oh!
There was an error while loading. Please reload this page.
hectorcast-db
marked this pull request as draft
October 4, 2023 11:10
Uh oh!
There was an error while loading. Please reload this page.
hectorcast-db
marked this pull request as ready for review
October 13, 2023 08:54
pietern
reviewed
Oct 13, 2023
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pietern
approved these changes
Oct 13, 2023
hectorcast-dbforce-pushed
the
custom-marshaller-test
branch
2 times, most recently
from
October 13, 2023 12:42
ddbbcdc to
af8ffabCompareandrewnester
approved these changes
Oct 13, 2023
hectorcast-dbforce-pushed
the
custom-marshaller-test
branch
from
October 13, 2023 12:56
af8ffab to
90e48c8Comparemgyucht
approved these changes
Oct 13, 2023
mgyucht
left a comment
Contributor
There was a problem hiding this comment.
one micronit, otherwise LGTM! Feel free to address and click the merge when ready button.
Uh oh!
There was an error while loading. Please reload this page.
pietern added a commit
that referenced
this pull request
Oct 16, 2023
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)).
Merged
github-merge-queueBot
pushed a commit
that referenced
this pull request
Oct 16, 2023
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)).
github-merge-queueBot
pushed a commit
that referenced
this pull request
Oct 17, 2023
## 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.
denik pushed a commit
that referenced
this pull request
May 20, 2026
## Changes
Update Go SDK to 0.23.0 and use custom marshaller.
## Tests
* Run unit tests
* Run nightly
* Manual test:
```
./cli jobs create --json @myjob.json
```
with ```
{
"name": "my-job-marshal-test-go",
"tasks": [{
"task_key": "testgomarshaltask",
"new_cluster": {
"num_workers": 0,
"spark_version": "10.4.x-scala2.12",
"node_type_id": "Standard_DS3_v2"
},
"libraries": [
{
"jar": "dbfs:/max/jars/exampleJarTask.jar"
}
],
"spark_jar_task": {
"main_class_name": "com.databricks.quickstart.exampleTask"
}
}]
}
```
Main branch:
```
Error: Cluster validation error: Missing required field: settings.cluster_spec.new_cluster.size
```
This branch:
```
{
"job_id":<jobid>
}
```
---------
Co-authored-by: Miles Yucht <miles@databricks.com>denik pushed a commit
that referenced
this pull request
May 20, 2026
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)).
denik pushed a commit
that referenced
this pull request
May 20, 2026
## 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: