File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ latest_entries_in_sat_prep AS (
63
63
SELECT
64
64
tgt.{{ parent_hashkey }},
65
65
tgt.{{ ns .hdiff_alias }},
66
- ROW_NUMBER() OVER(PARTITION BY tgt.{{ parent_hashkey| lower }} ORDER BY tgt.{{ src_ldts }} DESC ) as rn
66
+ ROW_NUMBER() OVER(PARTITION BY tgt.{{ parent_hashkey }} ORDER BY tgt.{{ src_ldts }} DESC ) as rn
67
67
FROM {{ this }} tgt
68
68
INNER JOIN distinct_incoming_hashkeys src
69
69
ON tgt.{{ parent_hashkey }} = src.{{ parent_hashkey }}
@@ -91,7 +91,7 @@ deduplicated_numbered_source_prep AS (
91
91
{{ parent_hashkey }},
92
92
{{ ns .hdiff_alias }},
93
93
{{ datavault4dbt .print_list (source_cols) }}
94
- , LAG({{ ns .hdiff_alias }}) OVER(PARTITION BY {{ parent_hashkey| lower }} ORDER BY {{ src_ldts }}) as prev_hashdiff
94
+ , LAG({{ ns .hdiff_alias }}) OVER(PARTITION BY {{ parent_hashkey }} ORDER BY {{ src_ldts }}) as prev_hashdiff
95
95
FROM source_data
96
96
97
97
),
@@ -142,4 +142,4 @@ records_to_insert AS (
142
142
143
143
SELECT * FROM records_to_insert
144
144
145
- {%- endmacro - %}
145
+ {%- endmacro - %}
You can’t perform that action at this time.
0 commit comments