-
Notifications
You must be signed in to change notification settings - Fork 227
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
[CT-410] Handle host name with trailing backslash #302
Comments
hey @JCZuurmond Appreciate the explanation and generous offer to contribute/coach someone else. Before I can triage this well, could you do me a favor and let me know where I can learn more about this method documentation-wise. It's not entirely clear to me at the outset that we should match databrick's documentation or that this is the superior method, or if specifying Looking forward to some pointers from you :) |
I think we may already have logic to handle this, added in #165: dbt-spark/dbt/adapters/spark/connections.py Lines 366 to 369 in d92a4e5
That is, you can supply the |
Interesting, I'll have a look, I probably made a mistake somewhere |
I have noticed that a simple copy-paste of the Databricks host URL often includes a trailing backslash ( |
@jtcohen6 : Could you make this a |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
@JCZuurmond, do you still think this is needed? Looking at @jtcohen6's comment, it seems like providing the full host name is already supported. |
@tim-steinkuhler Implemented this in 2021 in #165 :) I think trimming the trailing slash would be a great addition. Would be nice if you have a Databricks instance laying around to test this? |
wow, that's a quick response fokko :-), that sounds doable! |
@tim-steinkuhler : Will you implement this issue? |
I think I have the correct code, but just having some trouble setting everything up spark correctly, so haven't been able to test it yet :-D |
Describe the feature
Support complete host name in profile, that is include the
https://
before the host.now:
adb-<organisation id>.azuredatabricks.net
complete host:
https://adb-<organisation id>.azuredatabricks.net
Describe alternatives you've considered
Keeping it as is.
Additional context
When Databricks refers to
DATABRICKS_HOST
it means the complete host name, including thehttps://
.Who will this benefit?
It's more consistent with the Databricks documentation, therefore easier to understand. Also, I insert the host and token as environment variable, if the complete host name is supported, then the Databricks cli works with those environment variables too.
Are you interested in contributing this feature?
Sure. It is a good first issue, I am willing to coach someone too.
The text was updated successfully, but these errors were encountered: