Skip to content

Commit

Permalink
Fix for dbt-labs#848 (not_constant fails within groups with 1 element)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-lobanov-maersk authored Oct 18, 2023
1 parent 6ba7b66 commit 74744d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/generic_tests/not_constant.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ from {{ model }}
{{groupby_gb_cols}}

having count(distinct {{ column_name }}) = 1

and count(1) > 1

{% endmacro %}

0 comments on commit 74744d3

Please sign in to comment.