Skip to content

Commit

Permalink
Removed line that adds the built-in unique test to the "primary_key_t…
Browse files Browse the repository at this point in the history
…est_macros" list in order to avoid name collisions on unique test definition overrides
  • Loading branch information
Pfitzn authored and PatFitzner committed Sep 25, 2024
1 parent 6be0a27 commit fcebd68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/marts/core/int_all_graph_resources.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
{%- do test_macro_list.append(test) -%}
{%- endfor %}
{%- endfor -%}
{%- do test_macro_list.append("dbt.test_unique") -%}
{%- if test_macro_list | length == 0 -%}
{%- do test_macro_list.append("dbt.test_unique") -%}
{%- endif -%}
{%- set test_macro_set = set_strict(test_macro_list) -%}

{%- set quoted_directory_pattern = wrap_string_with_quotes(get_directory_pattern()) %}
Expand Down

0 comments on commit fcebd68

Please sign in to comment.