Skip to content

Releases: databricks/databricks-sdk-go

v0.44.0

13 Aug 07:08
v0.44.0
a03b542
Compare
Choose a tag to compare

New Features and Improvements

  • Remove deprecated WithImpl and Impl service methods (#1003).
  • w.Clusters.List() is no longer limited to returning 200 all-purpose and 30 jobs clusters from the last 30 days. It now returns all terminated clusters in the last 30 days.

Bug Fixes

  • Allowed filtering for graviton DBRs in ClusterAPI.SelectSparkVersion (#1004).
  • Avoid loading the response bodies twice in memory when parsing bytes.Buffer (#984).
  • Bump google.golang.org/grpc from 1.64.0 to 1.64.1 (#974).
  • Fix default-auth example when less than 10 clusters (#1012).
  • Infer Azure tenant ID if not set (#910).

Internal Changes

  • Add comment to validate workflow (#987).
  • Add error mapping for GetRun (#1006).
  • Add missing Package to Entity (#995).
  • Add prefix to Dependabot commit messages (#976).
  • Configure Dependabot for security updates only (#988).
  • Enable mixins via struct embedding (#1000).
  • Fix GetWorkspaceClient test & GCP SQL Warehouse Creation test (#1010).
  • Fix integration tests (#1008).
  • Fix processing of quoted titles (#989).
  • Generate SDK from Open API (#997).
  • Log a warning when declaring inline entities (#994).
  • Move PR message validation to a separate workflow (#983).
  • Pin jobs APIs to 2.1 in SDKs (#993).
  • Prefix all extension files with ext_ (#1001).
  • Trigger the validate workflow in the merge queue (#986).
  • Update OpenAPI spec (#991).
  • Use HTTP status text as message if the error response body is empty (#990).

API Changes:

Read more

v0.43.2

09 Jul 15:55
v0.43.2
f0825ef
Compare
Choose a tag to compare

Release v0.43.2

Internal Changes

  • Enforce Tag on PRs (#969).
  • Generate SDK for apierr changes (#970).
  • Add Release tag and Workflow Fix (#972).

v0.43.1

08 Jul 17:24
v0.43.1
82b07c8
Compare
Choose a tag to compare

0.43.1

Major Changes and Improvements:

  • Add a credentials provider for Github Azure OIDC (#965).
  • Add DataPlane API Support (#936).
  • Added more error messages for retriable errors (timeouts, etc.) (#963).

Internal Changes

  • Add ChangelogConfig to Generator struct (#967).
  • Improve Changelog by grouping changes (#962).
  • Parse API Error messages with int error codes (#960).

v0.43.0

24 Jun 09:05
3e41913
Compare
Choose a tag to compare

Major Changes and Improvements:

  • Support partners in user agent for SDK (#925).
  • Add serverless_compute_id field to the config (#952).

Other Changes:

  • Generate from latest spec (#944) and (#947).

API Changes:

OpenAPI SHA: 7437dabb9dadee402c1fc060df4c1ce8cc5369f0, Date: 2024-06-25

v0.42.0

03 Jun 12:27
v0.42.0
094bca8
Compare
Choose a tag to compare
  • Ignore additional flaky test (#930).
  • Ignore DataPlane Services during generation (#933).
  • Update OpenAPI spec (#934).

API Changes:

OpenAPI SHA: 37b925eba37dfb3d7e05b6ba2d458454ce62d3a0, Date: 2024-06-03

Dependency updates:

  • Bump golang.org/x/mod from 0.16.0 to 0.17.0 (#879).
  • Bump golang.org/x/oauth2 from 0.18.0 to 0.20.0 (#911).
  • Bump golang.org/x/net from 0.24.0 to 0.25.0 (#912).
  • Bump google.golang.org/api from 0.169.0 to 0.182.0 (#932).

v0.41.0

22 May 06:34
34e415c
Compare
Choose a tag to compare

Backward incompatible changes

  • Renamed CredentialsProvider to CredentialsStrategy.

Improvements and new features

  • Create a method to generate OAuth tokens (#886).
  • Better error message when private link enabled workspaces reject requests (#924).
  • Update OpenAPI spec (#926).

API Changes:

OpenAPI SHA: 7eb5ad9a2ed3e3f1055968a2d1014ac92c06fe92, Date: 2024-05-21

v0.40.1

14 May 11:25
v0.40.1
72334ef
Compare
Choose a tag to compare
  • Fixed codecov for repository (#909).
  • Add traceparent header to enable distributed tracing. (#914).
  • Log cancelled and failed requests (#919).

Dependency updates:

  • Bump golang.org/x/net from 0.22.0 to 0.24.0 (#884).
  • Bump golang.org/x/net from 0.17.0 to 0.23.0 in /examples/zerolog (#896).
  • Bump golang.org/x/net from 0.21.0 to 0.23.0 in /examples/slog (#897).

v0.40.0

02 May 14:37
v0.40.0
70aa8ee
Compare
Choose a tag to compare

0.40.0

  • Allow unlimited timeouts in retries (#904). By setting RETRY_TIMEOUT_SECONDS to a negative value, WorkspaceClient and AccountClient will retry retriable failures indefinitely. As a reminder, without setting this parameter, the default retry timeout is 5 minutes.

API Changes:

Read more

v0.39.0

24 Apr 13:18
v0.39.0
7672dec
Compare
Choose a tag to compare

0.39.0

  • Ignored flaky integration tests (#894).
  • Added retries for "worker env WorkerEnvId(workerenv-XXXXX) not found" (#890).
  • Updated SDK to OpenAPI spec (#899).

Note: This release contains breaking changes, please see the API changes below for more details.

API Changes:

OpenAPI SHA: 21f9f1482f9d0d15228da59f2cd9f0863d2a6d55, Date: 2024-04-23

v0.38.0

12 Apr 08:34
v0.38.0
7afb451
Compare
Choose a tag to compare

Behavior Changes

  • Override INVALID_PARAMETER_VALUE on fetching non-existent job/cluster (#864). The error returned when fetching a non-existent job or cluster has been changed from INVALID_PARAMETER_VALUE to RESOURCE_DOES_NOT_EXIST. Update your error handling code to check for databricks.ErrResourceDoesNotExist instead of databricks.ErrInvalidParameterValue. For example, if you are using the Jobs.GetById method, you should update your error handling code to:
_, err := w.Jobs.GetById(ctx, "id")
if errors.Is(err, databricks.ErrResourceDoesNotExist) {
    // handle the error
}

Note that the original error code is still accessible in the ErrorCode field of APIError.

Other Improvements

  • Do not leak secondary authorization tokens in debug logs (#882).
  • Fix logging of request bodies containing percent characters. (#881).
  • Added clientId and clientSecret to oauth-m2m auth_types (#885).

Internal Changes

  • Support custom AuthVisitors (#874).

API Changes:

Read more