Skip to content

Commit

Permalink
allow for different cased names
Browse files Browse the repository at this point in the history
  • Loading branch information
rlh1994 committed Jun 8, 2023
1 parent cda354a commit 983d292
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macros/generic_tests/equality.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
{%- endif %}
{%- endfor %}

{%- set compare_columns_set = set(include_columns | map(attribute='quoted')) %}
{%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted')) %}
{%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map("lower")) %}
{%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map("lower")) %}
{%- else -%}
{%- set compare_columns_set = set(model_columns | map(attribute='quoted')) %}
{%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted')) %}
{%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map("lower")) %}
{%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map("lower")) %}
{%- endif -%}

{% if compare_columns_set != compare_model_columns_set %}
Expand Down

0 comments on commit 983d292

Please sign in to comment.