Merge pull request #389 from kokorin/patch-1

Support uniqness test defined several times
This commit is contained in:
Benoit Perigaud
2023-10-26 17:35:46 +02:00
committed by GitHub

View File

@@ -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