From 70afd18a8e5f63652935914ef325a46471fcc8db Mon Sep 17 00:00:00 2001 From: Adrian Burus Date: Tue, 17 Dec 2024 11:28:00 +0200 Subject: [PATCH] Update equals.sql macro --- .../global_project/macros/utils/equals.sql | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dbt/include/global_project/macros/utils/equals.sql b/dbt/include/global_project/macros/utils/equals.sql index 216cdcd8..adb75b92 100644 --- a/dbt/include/global_project/macros/utils/equals.sql +++ b/dbt/include/global_project/macros/utils/equals.sql @@ -1,11 +1,12 @@ -{% macro equals(first_date, second_date, datepart) -%} - {{ return(adapter.dispatch('equals', 'dbt') (expression)) }} +{% macro equals(first_date, second_date, datepart) %} + {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }} {%- endmacro %} -{% macro defaults__equals(expr1, expr2) -%} -case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null)) - then 0 - else 1 -end = 0 -{% endmacro %} +{% macro default__equals(expr1, expr2) -%} + case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null)) + then 0 + else 1 + end = 0 + +{% endmacro %} \ No newline at end of file