Skip to content

Pass Databricks config programmatically#1339

Open
jorgengranseth wants to merge 5 commits into
datacontract:mainfrom
kartverket:pass-databricks-config-programmatically
Open

Pass Databricks config programmatically#1339
jorgengranseth wants to merge 5 commits into
datacontract:mainfrom
kartverket:pass-databricks-config-programmatically

Conversation

@jorgengranseth

Copy link
Copy Markdown
Contributor
  • Tests pass (uv run pytest)
  • Code formatted (uv run ruff check --fix && uv run ruff format)
  • README.md updated (if relevant)
  • CHANGELOG.md entry added

An approach to #1250 with Databricks as a proof of concept.

UnityImporter did not support Application Default Credentials, which the Databricks WorkspaceClient picks up by default, failing the command if both ADC and another method (required by the CLI) were provided. I changed the code to allow ADC to be used, but it would be better if it were possible to override ADC on-demand with this custom configuration. It is a bit unclear to me whether that is an issue for this repo or databricks-sdk. Ibis seems to handle this fine, using databricks.sql rather than the WorkspaceClient

Support passing Databricks config programmatically

The UnityImporter did not support Application Default Credentials, which
the Databricks WorkspaceClient picks up by default, failing the command
if both ADC and another method (required by the CLI) were provided. I
changed the code to allow ADC to be used, but I think we may want to
rearrange the importer a bit more in order to make it possible to
override ADC on-demand by passing configuration.
@jochenchrist

Copy link
Copy Markdown
Contributor

Thanks for the PR.
I need a few days to evaluate this approach vs alternatives, and if we can/want to extend this configuration to all other data sources.

@jschoedl jschoedl added the waiting-for-decision Waiting for a decision of the maintainers. label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-decision Waiting for a decision of the maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants