Skip to content

Commit

Permalink
snapshot surrogate key whitespace control
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbanin committed Jul 22, 2019
1 parent 329145c commit b6e7351
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@


{% macro default__snapshot_hash_arguments(args) -%}
md5({% for arg in args %}
md5({%- for arg in args -%}
coalesce(cast({{ arg }} as varchar ), '')
{% if not loop.last %} || '|' || {% endif %}
{% endfor %})
{%- endfor -%})
{%- endmacro %}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% macro bigquery__snapshot_hash_arguments(args) -%}
to_hex(md5(concat({% for arg in args %}
to_hex(md5(concat({%- for arg in args -%}
coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}
{% endfor %}
{%- endfor -%}
)))
{%- endmacro %}

Expand Down

0 comments on commit b6e7351

Please sign in to comment.