From 78d636470aea72c88bfc172c505d69293b3f0575 Mon Sep 17 00:00:00 2001 From: Theo Kiehn <162969167+tkiehn@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:58:47 +0100 Subject: [PATCH] fix nh_link union strategy condition syntax --- macros/tables/bigquery/nh_link.sql | 2 +- macros/tables/databricks/nh_link.sql | 2 +- macros/tables/exasol/nh_link.sql | 2 +- macros/tables/fabric/nh_link.sql | 2 +- macros/tables/oracle/nh_link.sql | 2 +- macros/tables/postgres/nh_link.sql | 2 +- macros/tables/redshift/nh_link.sql | 2 +- macros/tables/snowflake/nh_link.sql | 2 +- macros/tables/synapse/nh_link.sql | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/macros/tables/bigquery/nh_link.sql b/macros/tables/bigquery/nh_link.sql index f6fa56c8..59584184 100644 --- a/macros/tables/bigquery/nh_link.sql +++ b/macros/tables/bigquery/nh_link.sql @@ -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' %} diff --git a/macros/tables/databricks/nh_link.sql b/macros/tables/databricks/nh_link.sql index 36ca65e6..00f02889 100644 --- a/macros/tables/databricks/nh_link.sql +++ b/macros/tables/databricks/nh_link.sql @@ -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' %} diff --git a/macros/tables/exasol/nh_link.sql b/macros/tables/exasol/nh_link.sql index b94050ff..fb28e493 100644 --- a/macros/tables/exasol/nh_link.sql +++ b/macros/tables/exasol/nh_link.sql @@ -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' %} diff --git a/macros/tables/fabric/nh_link.sql b/macros/tables/fabric/nh_link.sql index 01d3b0ba..e73615a8 100644 --- a/macros/tables/fabric/nh_link.sql +++ b/macros/tables/fabric/nh_link.sql @@ -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' %} diff --git a/macros/tables/oracle/nh_link.sql b/macros/tables/oracle/nh_link.sql index fd4937e4..c60a794e 100644 --- a/macros/tables/oracle/nh_link.sql +++ b/macros/tables/oracle/nh_link.sql @@ -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' %} diff --git a/macros/tables/postgres/nh_link.sql b/macros/tables/postgres/nh_link.sql index f6c52a94..7147fb0e 100644 --- a/macros/tables/postgres/nh_link.sql +++ b/macros/tables/postgres/nh_link.sql @@ -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' %} diff --git a/macros/tables/redshift/nh_link.sql b/macros/tables/redshift/nh_link.sql index 38644184..74e5e9dc 100644 --- a/macros/tables/redshift/nh_link.sql +++ b/macros/tables/redshift/nh_link.sql @@ -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' %} diff --git a/macros/tables/snowflake/nh_link.sql b/macros/tables/snowflake/nh_link.sql index 0965bfa4..0b38718d 100644 --- a/macros/tables/snowflake/nh_link.sql +++ b/macros/tables/snowflake/nh_link.sql @@ -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' %} diff --git a/macros/tables/synapse/nh_link.sql b/macros/tables/synapse/nh_link.sql index b6258ae3..2f44bdf1 100644 --- a/macros/tables/synapse/nh_link.sql +++ b/macros/tables/synapse/nh_link.sql @@ -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' %}