Skip to content

Commit d4e8c63

Browse files
committed
AB#5723 Apply same fix for Postgres
1 parent d8e2997 commit d4e8c63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macros/tables/postgres/pit.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ backfill AS (
7373
{%- else %}
7474

7575
COALESCE(DECODE(MAX(ENCODE({{ sat_name | lower ~ '_src' }}.{{ sat_pk }}, 'hex')), 'hex'),
76-
{{ automate_dv.cast_binary(ghost_pk, quote=false) }})
76+
{{ automate_dv.cast_binary(column_str=ghost_pk, quote=true) }})
7777
AS {{ sat_name }}_{{ sat_pk_name }},
7878

7979
COALESCE(MAX({{ sat_name | lower ~ '_src' }}.{{ sat_ldts }}),
@@ -137,7 +137,7 @@ new_rows AS (
137137
{%- else %}
138138

139139
COALESCE(DECODE(MAX(ENCODE({{ sat_name | lower ~ '_src' }}.{{ sat_pk }}, 'hex')), 'hex'),
140-
{{ automate_dv.cast_binary(ghost_pk, quote=false) }})
140+
{{ automate_dv.cast_binary(column_str=ghost_pk, quote=true) }})
141141
AS {{ sat_name }}_{{ sat_pk_name }},
142142

143143
COALESCE(MAX({{ sat_name | lower ~ '_src' }}.{{ sat_ldts }}),

0 commit comments

Comments
 (0)