-
Notifications
You must be signed in to change notification settings - Fork 491
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
dbt-utils cardinality_equality schema test not being triggered since dbt=0.20.1 #457
Closed
1 of 5 tasks
Comments
Hi @feverittm! You're being caught up in this issue: dbt-labs/dbt-core#4082 In short, tests that touch multiple models aren't selected in 0.20.x. If you can, I recommend one of these options:
Let me know if you need more clarification! For now, I'm going to close this as it's not a bug in dbt-utils. Also a heads up that regardless of your final choice, you should update to dbt-utils 0.7.6, not 0.7.0 🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In our data build we use the dbt_utils test 'cardinality_equality' test in some of our models. Prior to 0.20.1 these tests would run as normal and would be shown in the log file as being executed. However when we upgraded to dbt 0.20.1 and dbt_utils 0.7.0 this test silently does not run. When reviewing the log file it only says 'parsing cardinality_equality', but never executes the test.
While I have noted changes in this macro in the release, there does not seem to be any change in the usage documentation. Does the 'column_name' field (which is explicit now) need to be explicitly called out.
Steps to reproduce
This test was ran using both dbt 0.19.1 and dbt_utils 0.6.6 (test runs normally) and using dbt 0.20.1 and dbt_utils 0.7.0 (does not run)
Expected results
I would expect both versions to run in a similar manner.
Actual results
The dbt log file does not show that the test was wan and no indication as to why.
Screenshots and log output
2021-12-03 19:45:18.389470 (MainThread): Parsing macros\schema_tests\at_least_one.sql
2021-12-03 19:45:18.391465 (MainThread): Parsing macros\schema_tests\cardinality_equality.sql
2021-12-03 19:45:18.393460 (MainThread): Parsing macros\schema_tests\equality.sql
This is the only mention of the cardinality_equality test in the log file
System information
The contents of your
packages.yml
file:packages:
version: 0.7.0
Which database are you using dbt with?
The output of
dbt --version
:Additional context
Are you interested in contributing the fix?
The text was updated successfully, but these errors were encountered: