Skip to content

Commit

Permalink
Merge pull request #389 from kokorin/patch-1
Browse files Browse the repository at this point in the history
Support uniqness test defined several times
  • Loading branch information
b-per authored Oct 26, 2023
2 parents df37f57 + f601bf1 commit c36aa75
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
Expand Up @@ -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
Expand Down

0 comments on commit c36aa75

Please sign in to comment.