Skip to content

Commit d8e2997

Browse files
committed
AB#5723 PIT-1SI-05 Now passing
1 parent c36382d commit d8e2997

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

macros/internal/helpers/repeat.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
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 -%}

macros/supporting/ghost_records/binary_ghost.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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 %}

macros/tables/snowflake/pit.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}),

0 commit comments

Comments
 (0)