-
Notifications
You must be signed in to change notification settings - Fork 977
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
Switch from dots to underscores for versioning #3316
Conversation
✅ Deploy Preview for docs-getdbt-com ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Will wait to merge until @jtcohen6 gets a chance to comment if he wants to, in case I am misinterpreting his goals |
@joellabes I'm open to this change if you think it's clarifying / less confusing for users! Here's my thought process:
So when talking about the model as a dbt node/resource, in abstract of its SQL file definition and its materialized relation identifier, my inclination was to use the dot (
Should we just fix that, and support selecting versioned models as |
Hmm!
Yeah I think this is a good idea regardless, to reduce surprises. Don't know how it makes me feel about the writing in the docs - the dots are righter, but unless you're poking around in the artifacts you're never going to interact with them right? |
We did this for v1.6: dbt-labs/dbt-core#7995 Let's move ahead with this PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank.you
thank_you
@joellabes !
What are you changing in this pull request and why?
The docs for model versioning use
dim_customers.v1
in a lot of places, instead ofdim_customers_v1
. This was an original proposal for model version naming that got abandoned due to database peculiarities.This PR swaps out the
.
for_
everywhere except for when it's being used in a model's fully qualified name (where the dots are actually how it's represented.)I'm assuming this was an oversight as the product evolved; maybe it's on purpose across the board? If so then this is more up for debate, but IMO the more time we spend talking about versioned models along our preferred naming scheme (single digit with an underscore) the better. The fact that we use dots behind the scenes isn't relevant to most folks.