Skip to content

Add X-Databricks-Org-Id header to Shares.list() extension for SPOG hosts#761

Open
simonfaltum wants to merge 1 commit intomainfrom
simonfaltum/spog-org-id-header
Open

Add X-Databricks-Org-Id header to Shares.list() extension for SPOG hosts#761
simonfaltum wants to merge 1 commit intomainfrom
simonfaltum/spog-org-id-header

Conversation

@simonfaltum
Copy link
Copy Markdown
Member

Why

Hand-written extension methods that make direct apiClient.execute() calls are missing the X-Databricks-Org-Id header that SPOG hosts require for routing. The generated service implementations already include this header per-call, but SharesExtImpl.list() was missing it.

Linked Go SDK PR: databricks/databricks-sdk-go#1634

Changes

Added the X-Databricks-Org-Id header to SharesExtImpl.list(), matching the pattern used by generated code:

if (apiClient.workspaceId() != null) {
  req.withHeader("X-Databricks-Org-Id", apiClient.workspaceId());
}

Test plan

  • mvn compile -pl databricks-sdk-java passes

This pull request was AI-assisted by Isaac.

…st compatibility

The hand-written SharesExtImpl.list() makes a direct apiClient.execute()
call without the X-Databricks-Org-Id header that SPOG hosts require for
routing. The generated service implementations already include this
header per-call, but this extension was missing it.

Co-authored-by: Isaac
@github-actions
Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 761
  • Commit SHA: 804ef88764a9e2751339cbeed62982430752c602

Checks will be approved automatically on success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant