What's Changed
- fix
equal_rowcountbetween 2 different tables by @light-le in #987 - fix: return 0 in
equal_rowcountwhen both models have 0 rows by @i-125 in #974 - fix: NULL-safe diff calculation in
equal_rowcountby @sdebruyn in #1090 - fix: treat NULL group keys as ordinary groups in
equal_rowcountby @dbeatty10 in #1151 - fix: fail
fewer_rows_thanwhen both models have 0 rows by @dbeatty10 in #1144 - fix: show 0 instead of NULL in
fewer_rows_thancount columns for unmatched groups by @dbeatty10 in #1146 - fix: treat NULL group keys as ordinary groups in
fewer_rows_thanby @dbeatty10 in #1152
Bug fixes for data tests
This release causes some scenarios for the equal_rowcount and equal_rowcount generic data tests that previously passed ✅ to fail ❌ instead.
The previous behavior was incorrect, and the new behavior is correct instead. If this test starts failing for people, their options are to:
- change the underlying data
- change the test
severityfromerror(default) towarn - remove/disable the test
All scenarios for the dbt_utils.equal_rowcount generic data test
Before / After: ✅ = test passes, ❌ = test fails, "error" = dbt errors out.
| Scenario | Before | After |
|---|---|---|
equal_rowcount, groups only in one model (disjoint)
| ✅ | ❌ |
equal_rowcount, no groups, other model empty
| ✅ | ❌ |
equal_rowcount, NULL group key in both models with different counts
| ✅ | ❌ |
equal_rowcount, NULL group key in only one model
| ✅ | ❌ |
equal_rowcount, both models empty
| error | ✅ |
equal_rowcount, NULL group key in both models with equal counts
| ✅ | ✅ |
All scenarios for the dbt_utils.fewer_rows_than generic data test
| Scenario | Before | After |
|---|---|---|
fewer_rows_than, ours has a group the other model lacks
| ✅ | ❌ |
fewer_rows_than, no groups, ours has rows, other model empty
| ✅ | ❌ |
fewer_rows_than, NULL group key in both models with equal counts
| ✅ | ❌ |
fewer_rows_than, NULL group key in our model only
| ✅ | ❌ |
fewer_rows_than, both models empty
| error | ❌ |
fewer_rows_than, no groups, ours empty, other has rows
| ✅ | ✅ |
fewer_rows_than, NULL group key in both models, ours has fewer rows
| ✅ | ✅ |
Under the hood / minor changes
- fix(get_single_value): route 'no rows' message through log() by @panagiotis-sourilas in #1113
- fix: variable name typo in haversine_distance documentation by @arijitroy003 in #1114
- ci: switch Snowflake integration tests to key-pair auth by @ash2shukla in #1121
- ci: require a label before running fork PRs by @dbeatty10 in #1163
- ci: test the PR's code rather than
mainbranch by @dbeatty10 in #1164 - ci: re-enable GitHub Actions integration tests by @dbeatty10 in #1155
- ci: create
dbt_utils_testdatabase indocker-composepostgres service by @dbeatty10 in #1174 - ci: Remove disabled
create-table-of-contentsworkflow by @dbeatty10 in #1181 - ci: Disable CircleCI in favor of GitHub Actions by @dbeatty10 in #1182
New Contributors
- @panagiotis-sourilas made their first contribution in #1113
- @arijitroy003 made their first contribution in #1114
- @ash2shukla made their first contribution in #1121
- @light-le made their first contribution in #987
- @i-125 made their first contribution in #974
Full Changelog: 1.4.1...1.4.2