Skip to content

feat(go): add databricks:// uri support, tests, and docs#102

Merged
lidavidm merged 3 commits intoadbc-drivers:mainfrom
Mandukhai-Alimaa:feat/add-uri-support
Dec 29, 2025
Merged

feat(go): add databricks:// uri support, tests, and docs#102
lidavidm merged 3 commits intoadbc-drivers:mainfrom
Mandukhai-Alimaa:feat/add-uri-support

Conversation

@Mandukhai-Alimaa
Copy link
Collaborator

What's Changed

Support databricks:// URI scheme
Basic connection test with URI
Document URI formats


Components:
- `scheme`: `databricks://` (required)
- `<personal-access-token>`: (required) Databricks personal access token from the requirements.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "from the requirements" referring to?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Databricks documentation linked below has the requirements section, and it is referring to that, but it is probably cleaner without referring to it. I removed it.

Comment on lines +337 to +338
if after, ok := strings.CutPrefix(value, "databricks://"); ok {
d.uri = after
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually...do we need to also URL-decode the string? Or does the Databricks driver do that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need to URL-decode the string, the Databricks driver handles it.
https://github.com/databricks/databricks-sql-go/blob/main/internal/config/config.go#L210

@lidavidm lidavidm merged commit 8d0e384 into adbc-drivers:main Dec 29, 2025
10 of 12 checks passed
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.

2 participants