Skip to content

Commit

Permalink
Update hash_columns.sql
Browse files Browse the repository at this point in the history
Moved comma inside conditional logic
  • Loading branch information
tkirschke authored Jul 4, 2023
1 parent c170e70 commit 5486473
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion macros/staging/hash_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}

Expand Down

0 comments on commit 5486473

Please sign in to comment.