You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jtcohen6 opened this issue
Jul 15, 2021
· 2 comments
Labels
bugSomething isn't workingdbt testsIssues related to built-in dbt testing functionalitystaleIssues that have gone stalestateStateful selection (state:modified, defer)
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers.
bugSomething isn't workingdbt testsIssues related to built-in dbt testing functionalitystaleIssues that have gone stalestateStateful selection (state:modified, defer)
Describe the bug
Similar to #2744, but for tests. We're not properly storing the un-rendered version of test configs supplied as modifiers, so any env-aware logic in them will trigger
state:modified
. We actually do have access tonode.unrendered_config
, we just need to pass the original values before they're rendered here:https://github.com/dbt-labs/dbt/blob/f460d275baa4df8cf8713f27e198a3577d6ea71c/core/dbt/parser/schema_test_builders.py#L228-L233
This is true for both generic-generic tests, and built-in shortcut generic tests (
unique
+not_null
).Steps To Reproduce
$ dbt run --target prod $ dbt test --target prod $ mv target/manifest.json .state $ dbt ls -s state:modified --state .state
The text was updated successfully, but these errors were encountered: