File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 55
66{%- macro repeat(str_to_repeat, desired_length= 0 ) - %}
77
8- {% do return(str_to_repeat * desired_length) %}
8+ {%- set repeated_string = str_to_repeat * desired_length - %}
9+
10+ {%- do return(repeated_string | string) - %}
911
1012{%- endmacro - %}
Original file line number Diff line number Diff line change 99 {{ adapter .dispatch (' binary_ghost' , ' automate_dv' )(alias= alias, hash= hash) }}
1010{%- endmacro - %}
1111
12- {%- macro default__binary_ghost(alias= none , hash) - %}
12+ {%- macro default__binary_ghost(alias, hash) - %}
1313
1414 {%- if hash == ' md5' - %}
1515 {%- set zero_string_size = 32 %}
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ backfill AS (
116116 {% if enable_native_hashes %}
117117 {{ ghost_pk }}
118118 {% else %}
119- {{ automate_dv .cast_binary (ghost_pk, quote= false ) }})
119+ {{ automate_dv .cast_binary (column_str = ghost_pk, quote= true ) }})
120120 {% endif %}
121121 AS {{ sat_name }}_{{ sat_pk_name }},
122122
@@ -181,7 +181,7 @@ new_rows AS (
181181 {%- else %}
182182
183183 COALESCE(MAX ({{ sat_name | lower ~ ' _src' }}.{{ sat_pk }}),
184- {{ automate_dv .cast_binary (ghost_pk, quote= false ) }})
184+ {{ automate_dv .cast_binary (column_str = ghost_pk, quote= true ) }})
185185 AS {{ sat_name }}_{{ sat_pk_name }},
186186
187187 COALESCE(MAX ({{ sat_name | lower ~ ' _src' }}.{{ sat_ldts }}),
You can’t perform that action at this time.
0 commit comments