-
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-3383][Bug] Metadata freshness checks that include a filter cause dbt to hang #9078
Comments
Thanks for reporting this @sp-tkerlavage 🙏 I was able to reproduce this in dbt-snowflake and something similar in dbt-postgres as well, so I'm going to transfer this issue to dbt-core.
|
Notes from estimation:
|
There are a few things happening here that cause the hang. First, we're logging Note events that have positional arguments that we explicitly do not allow.. This assert should really raise a Once that's fixed, another error will surface with the This behavior needs to be tweaked where if you try to configure freshness for a node and you don’t supply the loaded_at_field but also the warehouse doesn’t support this feature, we should show the freshness as skipped and log the warning message. This involves adding |
Is this a new bug in dbt-snowflake?
Current Behavior
I found this when I was testing the new information_schema/metadata driven freshness feature released in v1.7.
I removed the loaded_at field from my freshness test configs and ran them, not realizing I still had a
filter
on my freshness check definition. The output in the terminal showed the freshness checks being executed, but they never completed. Viewing my warehouse query history, I confirmed that dbt didn't actually issue any freshness queries at all. dbt output just sat there for several minutes before I manually cancelled it.Removing the
filter
from the freshness check definition resolved the issue.Expected Behavior
Metadata driven freshness checks should either support
filter
if theres a use case for that behavior, orfilter
should be ignored and there should be a warning message indicating thatfilter
was ignored.Either way the current behavior where
filter
causes metadata driven freshness checks to just hang does seem to be a bug.Steps To Reproduce
This should cause the freshness check to "run" but no query against the warehouse will be issued:
This should resolve the error (filter config is removed--freshness check query is actually issued and runs to completion)
Relevant log output
No response
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: