Skip to content

Commit

Permalink
fix nh_link union strategy condition syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tkiehn authored Jan 13, 2025
1 parent 72e0085 commit 78d6364
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion macros/tables/bigquery/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{%- set ns.source_models_rsrc_dict = source_model_values['source_models_rsrc_dict'] -%}
{{ log('source_models: '~source_models, false) }}

{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION DISTINCT' %}
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/databricks/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{%- set ns.source_models_rsrc_dict = source_model_values['source_models_rsrc_dict'] -%}
{{ log('source_models: '~source_models, false) }}

{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION DISTINCT' %}
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/exasol/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{{ log('source_models: '~source_models, false) }}


{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION' %}
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/fabric/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{%- set ns.source_models_rsrc_dict = source_model_values['source_models_rsrc_dict'] -%}
{{ log('source_models: '~source_models, false) }}

{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION' %}
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/oracle/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{%- set ns.source_models_rsrc_dict = source_model_values['source_models_rsrc_dict'] -%}
{{ log('source_models: '~source_models, false) }}

{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION' %}
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/postgres/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{%- set ns.source_models_rsrc_dict = source_model_values['source_models_rsrc_dict'] -%}
{{ log('source_models: '~source_models, false) }}

{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION' %}
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/redshift/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{%- set ns.source_models_rsrc_dict = source_model_values['source_models_rsrc_dict'] -%}
{{ log('source_models: '~source_models, false) }}

{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION' %}
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/snowflake/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{%- set ns.source_models_rsrc_dict = source_model_values['source_models_rsrc_dict'] -%}
{{ log('source_models: '~source_models, false) }}

{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION' %}
Expand Down
2 changes: 1 addition & 1 deletion macros/tables/synapse/nh_link.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{%- set ns.source_models_rsrc_dict = source_model_values['source_models_rsrc_dict'] -%}
{{ log('source_models: '~source_models, false) }}

{% if union_strategy|lower = 'all' %}
{% if union_strategy|lower == 'all' %}
{% set union_command = 'UNION ALL' %}
{% elif union_strategy|lower == 'distinct' %}
{% set union_command = 'UNION' %}
Expand Down

0 comments on commit 78d6364

Please sign in to comment.