Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 6cafc04

Browse files
authored
adding quotes to merge condition
To avoid controversial namings such as "group" or "type" that throws an error, this fix enforces quoting the column names
1 parent ead6879 commit 6cafc04

File tree

1 file changed

+1
-1
lines changed
  • dbt-athena/src/dbt/include/athena/macros/materializations/models/incremental

1 file changed

+1
-1
lines changed

dbt-athena/src/dbt/include/athena/macros/materializations/models/incremental/merge.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
{%- set merge_part -%}
110110
on (
111111
{%- for key in unique_key_cols -%}
112-
target.{{ key }} = src.{{ key }}
112+
target."{{ key }}" = src."{{ key }}"
113113
{{ " and " if not loop.last }}
114114
{%- endfor -%}
115115
{% if incremental_predicates is not none -%}

0 commit comments

Comments
 (0)