From 548647308e8005f1807545bea475aedcf8d715d4 Mon Sep 17 00:00:00 2001 From: Tim Kirschke <81677440+tkirschke@users.noreply.github.com> Date: Tue, 4 Jul 2023 09:07:58 +0200 Subject: [PATCH] Update hash_columns.sql Moved comma inside conditional logic --- macros/staging/hash_columns.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macros/staging/hash_columns.sql b/macros/staging/hash_columns.sql index 7c945eb2..305a277a 100644 --- a/macros/staging/hash_columns.sql +++ b/macros/staging/hash_columns.sql @@ -20,14 +20,17 @@ multi_active_key=multi_active_key, main_hashkey_column=main_hashkey_column) -}} + {{- ", \n" if not loop.last -}} + {%- elif columns[col] is not mapping and (col|upper) == (main_hashkey_column | upper) -%} {{- datavault4dbt.hash(columns=columns[col], alias=col, is_hashdiff=false) -}} + {{- ", \n" if not loop.last -}} + {%- endif -%} - {{- ", \n" if not loop.last -}} {%- else -%}