Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of bare DATABRICKS_HOST environment variables #252

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

atheriel
Copy link
Contributor

Some environments (e.g. Workbench) set DATABRICKS_HOST to the bare hostname and omit the HTTPS prefix; this breaks when we later expect it to be an actual URL.

So this commit updates databricks_workspace() to handle both cases. Similar code exists in all of the other Databricks packages and SDKs that I am aware of, so this is nothing new; I just missed it.

Unit tests are included.

Some environments (e.g. Workbench) set `DATABRICKS_HOST` to the bare
hostname and omit the HTTPS prefix; this breaks when we later expect it
to be an actual URL.

So this commit updates `databricks_workspace()` to handle both cases.
Similar code exists in all of the other Databricks packages and SDKs
that I am aware of, so this is nothing new; I just missed it.

Unit tests are included.

Signed-off-by: Aaron Jacobs <[email protected]>
@hadley hadley merged commit 2ced774 into tidyverse:main Jan 15, 2025
11 checks passed
@atheriel atheriel deleted the fix-bare-databricks-host-handling branch January 15, 2025 16:05
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