-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-1282] [Bug] Cannot reference a Source containing a dot (.) in node selection #5980
Comments
hi @rossserven, thanks for opening this issue. I think it's related to #1269, tagging @jtcohen6 for his input -- it looks like this is how dbt has been for a long time so I'm going to classify this as an enhancement rather than a bug. @jtcohen6 should we close as a duplicate in favor of #1269, or is this different? I don't see a lot of discussion about sources in that issue |
The ability to use dots in some resource names is something that's, at best, semi-supported within dbt today. We don't (to my knowledge) document that you can definitely do this, but last year a community member did add tests for models with dots in their names (#3247) to ensure that we didn't accidentally regress on this capability in future versions. I do see the connection to #1269, insofar as the dot-in-model-name approach (dynamically stripped to form We simply must add namespacing support next year. #1269 is the oldest and narrowest version of that issue, but the way I want to see us doing this is by:
All that being said: @rossserven Could I ask what your purpose is behind naming a source |
@jtcohen6 there was no requirement/purpose for |
I've opened a docs issue to track potential improvements, going to close this one out @rossserven |
Is this a new bug in dbt-core?
Current Behavior
Trying to reference a Source through node selection and I’m running into an issue because our sources contain periods. e.g.:
so this doesn’t work:
source:raw.test.TEST_TABLE
however if it’s defined as:
this works:
source:test.TEST_TABLE
Expected Behavior
this should work (or optionally enclosed with quotes):
source:raw.test.TEST_TABLE
Steps To Reproduce
Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: