Skip to content

Commit

Permalink
Merge pull request #95 from ScalefreeCOM/93-multi-active-satellite-wr…
Browse files Browse the repository at this point in the history
…ong-comma-when-having-multiple-hashkeys

Update hash_columns.sql
  • Loading branch information
tkirschke authored Jul 11, 2023
2 parents c170e70 + 5486473 commit 59ea183
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 59ea183

Please sign in to comment.