-
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-3074] [Bug] Quoting not respected in freshness query #8547
Comments
Hello! Thanks for opening this up. The input to the You should be able to add quotes to your string like this This is similar to these issues:
where we're just handing inputs as a string. We could try to do something smarter here and check if the column you've specified for
|
Ah, gotcha! Thanks a lot for the answer Grace. I remember trying that and it did not work back then, probably for some other reason. Now I tried |
Hello, stumbled upon this one because I need to cast a quoted source column to timestamp when specifying loaded_at_field for table:
getting error:
db: Snowflake Is there anything that I am missing? -I tried all possible variations of quoting but it won't work. Thanks :) |
Is this a new bug in dbt-core?
Current Behavior
When quoting is enabled for a source table column, the freshness query does not quote the
loaded_at_field
column.Expected Behavior
The
loaded_at_field
column is quoted in the freshness query when quoting is enabled for the column in the source table definition.Steps To Reproduce
loaded_at
timestamp column in a Snowflake data warehouse.loaded_at_field: loaded_at
, and configure freshness checks. Setquote: true
in the column configuration forloaded_at
.dbt source freshness
.invalid identifier 'LOADED_AT'
.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: