Skip to content

Commit

Permalink
Fix/fix quotes behaviour in snapshots (dbt-labs#5389)
Browse files Browse the repository at this point in the history
* fix: add quotes to relation

* fix: add quotes correctly

* chore: reset main.py

* chore: reset main.py from master

* chore: newline

* chore: changie
  • Loading branch information
pquadri authored and Axel Goblet committed Sep 16, 2022
1 parent 6a88ed6 commit e9dabcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changes/unreleased/Fixes-20220617-114443.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Fixes
body: Properly use quotes for Snowflake snapshots when checking all columns
time: 2022-06-17T11:44:43.978834+02:00
custom:
Author: pquadri
Issue: "2975"
PR: "5389"
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
{%- set intersection = [] -%}
{%- for col in query_columns -%}
{%- if col in existing_cols -%}
{%- do intersection.append(col) -%}
{%- do intersection.append(adapter.quote(col)) -%}
{%- else -%}
{% set ns.column_added = true %}
{%- endif -%}
Expand Down

0 comments on commit e9dabcb

Please sign in to comment.