-
Notifications
You must be signed in to change notification settings - Fork 229
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
The organisation is an integer #88
Conversation
The big question here is, can an organization start with a zero 🤔 |
Hey @Fokko, check out this similar issue: dbt-labs/dbt-core#2384 The resolution there was to introduce a special Jinja filter |
I just checked, and this works at the latest master. However, I think it would be better to change it to an integer. the |
I'm all for switching this to be an integer if we feel good about that going forward. I'm cognizant of the README note added by this older commit: 9ab1da3. (I've since removed the full comment only to summarize it a bit more succinctly.) Have you ever seen a non-numeric organization ID, or one that requires a leading 0? If you feel good about this change, could you update the "Configuring your profile" section of the README accordingly? |
For a current project, we have many (20+) workspaces, and I haven't seen any with a leading zero, so I think we're safe on this one. The Python ints are of unlimited size, so I think we're safe there as well. @poidra02 any thoughts on this one? |
@jtcohen6 Great work on the 0.17 release! Would it be possible to include this in 0.17 dbt-spark? :) |
hey @Fokko - sorry for the delay in getting back to you. I could get on board, but there are a couple things that I suggest we consider:
if we feel that the risk of chasing changing workspace ids/orgs is small (or the level of effort to change and test that is small) then I could get behind the change. though the choice to make it a strings was deliberate to avoid that obviously, and I'm not sure I'm understanding just yet what challenge a string is introducing here to weigh the trade off myself. but happy to talk about it further... |
I agree with this hesitation. I asked some folks from Databricks with whom I've been in contact whether an organization ID can ever contain non-numeric characters or a leading 0. I'm waiting on a response from them. Given that this is functional (albeit clunky) with organization ID as a string, and that switching it to be an integer has potential risk—likelihood unknown—of being a breaking change for some future accounts, I'm inclined to keep it as a string for now until we receive more explicit direction from Databricks. |
This will be resolved by the change we made to native env rendering in v0.17.1 (discourse) |
While rebasing #85 against the latest master, I've encountered an issue with the connection:
With the following config (slightly modified of course):