-
Notifications
You must be signed in to change notification settings - Fork 35
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
[Bug] Unit tests fail when input has a column name with a quoted identifier #205
Labels
bug
Something isn't working
community
This PR is from a community member
Medium Severity
bug with minor impact that does not have resolution timeframe requirement
quoting
Issues related to dbt's quoting behavior
unit tests
Issues related to built-in dbt unit testing functionality
Comments
2 tasks
Thanks for reopening here @mpatek! Prototype of potential solution: |
jtcohen6
added
Medium Severity
bug with minor impact that does not have resolution timeframe requirement
and removed
triage
labels
May 13, 2024
See below for a minimal reproducible example that covers the maximal number of edge cases.
|
dbeatty10
added
quoting
Issues related to dbt's quoting behavior
unit tests
Issues related to built-in dbt unit testing functionality
labels
May 13, 2024
4 tasks
dbeatty10
changed the title
[Bug] Unit tests fail when input contain reserved-word-named columns
[Bug] Unit tests fail when input has a column name with a quoted identifier
May 14, 2024
2 tasks
Closed
2 tasks
Also seeing this issue, it looks like #204 is fixing it - is that going anywhere? |
2 tasks
4 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
community
This PR is from a community member
Medium Severity
bug with minor impact that does not have resolution timeframe requirement
quoting
Issues related to dbt's quoting behavior
unit tests
Issues related to built-in dbt unit testing functionality
Is this a new bug?
Current Behavior
In BigQuery:
Supposing an input table with a reserved-word-named column like:
And a downstream table like:
And a unit test like:
If I try
dbt test --select test_type:unit
I get:
Syntax error: Unexpected keyword FROM
Expected Behavior
Expect tests to pass without errors.
Steps To Reproduce
from
)Relevant log output
No response
Environment
Additional Context
Original Issue opened in the dbt-core repo: dbt-labs/dbt-core#10112
The text was updated successfully, but these errors were encountered: