Databricks SDK for Go v0.152.0: Breaking change in query parameter serialization
Databricks SDK for Go v0.152.0 introduces a breaking change where query parameters listed in `ForceSendFields` are now serialized with their explicit values, including zero values. This impacts callers that previously relied on these parameters being silently omitted. The release also includes several bug fixes, particularly around `ForceSendFields` honoring query parameters, and numerous API additions across services like disaster recovery, dashboards, Postgres, and serving endpoints.
- →Add Etag field for disasterrecovery.UpdateFailoverGroupRequest
- →Add DownloadMessageAttachmentVisualization method for w.Genie workspace-level service
- →Add Viz field for dashboards.GenieAttachment
- →Add EnableVisualization field for dashboards.GenieCreateConversationMessageRequest
- →Add EnableVisualization field for dashboards.GenieStartConversationMessageRequest
Breaking changes (1) ›
Query parameters listed in ForceSendFields are now sent on the wire when they hold a zero value. Previously ForceSendFields had no effect on query parameters (only JSON body fields were honored), so such a parameter was silently omitted; it is now serialized with its explicit value (for example cascade=false). Callers that unknowingly relied on the previous no-op behavior will now send the parameter
Enhancements (13) ›
- Add Etag field for disasterrecovery.UpdateFailoverGroupRequest
- Add DownloadMessageAttachmentVisualization method for w.Genie workspace-level service
- Add Viz field for dashboards.GenieAttachment
- Add EnableVisualization field for dashboards.GenieCreateConversationMessageRequest
- Add EnableVisualization field for dashboards.GenieStartConversationMessageRequest
- Add ReplaceExisting field for postgres.CreateDatabaseRequest
- Add ReplaceExisting field for postgres.CreateRoleRequest
- Add AutoscalingLimitMaxCu, AutoscalingLimitMinCu, NoSuspension and SuspendTimeoutDuration fields for postgres.InitialEndpointSpec
- Add InitialBranchSpec field for postgres.Project
- Add ComputeLastActiveTime field for postgres.ProjectStatus
- Add TelemetryConfig field for serving.CreateServingEndpoint
- Add TelemetryConfig field for serving.ServingEndpoint
- Add TelemetryConfig field for serving.ServingEndpointDetailed
Fixes (1) ›
Honor ForceSendFields for query parameters, including fields nested inside request sub-structs. A zero-valued scalar field (for example a false bool such as cascade on the pipelines Delete request) listed in ForceSendFields is now sent on the wire instead of being dropped by the url tag's omitempty, matching the existing behavior for JSON request bodies
https://github.com/databricks/databricks-sdk-go/releases/tag/v0.152.0