Skip to content

Commit

Permalink
Support uniqness test defined several times
Browse files Browse the repository at this point in the history
kokorin authored Oct 25, 2023
1 parent df37f57 commit f601bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/marts/tests/intermediate/int_model_test_summary.sql
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ agg_test_relationships as (
when (
{%- for test_set in var('primary_key_test_macros') %}
{%- set compare_value = test_set | length %}
primary_key_method_{{ loop.index }}_count = {{ compare_value}}
primary_key_method_{{ loop.index }}_count >= {{ compare_value}}
{%- if not loop.last %} or {% endif %}
{%- endfor %}
) then 1

0 comments on commit f601bf1

Please sign in to comment.