-
Notifications
You must be signed in to change notification settings - Fork 40
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
Comments
Thanks for reopening here @mpatek! Prototype of potential solution: |
See below for a minimal reproducible example that covers the maximal number of edge cases.
|
Also seeing this issue, it looks like #204 is fixing it - is that going anywhere? |
@dbeatty10 - we are curious about the status of this ticket and if there is an available workaround. This issue is currently blocking the unittests feature since all of our models use quoted column names in Snowflake. |
Echoing the call for some more visibility into the status of this issue, as it's also preventing us from being able to unit test many of our models. In our case many of our tables have a column called |
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: