Open igor-lobanov-maersk opened 1 year ago
Hi team,
There has been no response to this issue report despite me providing a PR to fix it. I was wondering if this repo is still maintained?
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 comment on the issue or else it will be closed in 7 days.
Hi @dbeatty10 and team -- I'm puzzled by complete lack of interest to this ticket... I didn't get a single comment either here on in the PR. Is this package being maintained at all?
Thanks for raising this PR @igor-lobanov-maersk !
Just now gave an initial review here: https://github.com/dbt-labs/dbt-utils/pull/849#pullrequestreview-2225726468
Describe the bug
not_constant generic test would generate a false positive if used with group_by_column and there is only one row within a group
Steps to reproduce
Test model:
Test schema.yml:
Run:
dbt test -m test
Expected results
Test passes, because if there is only one value in the group, it does not break the constancy rule.
Actual results
Test fails.
Context
To explain what I'm doing and where this might be useful to others. I am flattening a nested array, and setting a flag if a given record is the first one. I wanted to add a test to make sure this logic always works, because I'm relying on this flag to be true exactly once for each id of the original record. In some cases there is only one element in the array, which gets the flag set to true correctly, but the test thinks it's wrong.
Screenshots and log output
Not sure what else would help.
System information
The contents of your
packages.yml
file:Which database are you using dbt with? Dremio
The output of
dbt --version
:Are you interested in contributing the fix?
PR provided #849