From 07f2b64e83f248068194422cc96650ed4cea0a61 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Wed, 4 Sep 2024 13:36:48 +0100 Subject: [PATCH] fix: Incremental partition drop --- .../macros/materializations/models/incremental/strategies.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt/include/firebolt/macros/materializations/models/incremental/strategies.sql b/dbt/include/firebolt/macros/materializations/models/incremental/strategies.sql index b9e678e06..b48766548 100644 --- a/dbt/include/firebolt/macros/materializations/models/incremental/strategies.sql +++ b/dbt/include/firebolt/macros/materializations/models/incremental/strategies.sql @@ -64,7 +64,7 @@ SELECT {% if partition_cols is iterable and partition_cols is not string -%} - DISTINCT({{ partition_cols | join(', ') }}) + DISTINCT {{ partition_cols | join(', ') }} {%- else -%} DISTINCT {{ partition_cols }} {%- endif %} @@ -110,7 +110,7 @@ of extra work. -#} '{{ vals | join(', ') }}' {%- else -%} - {{ vals | join(', ') }} + '{{ vals | join("', '") }}' {%- endif -%} {%- endif -%} {%- else -%}