From 76c4eec1867cd1f93d84d757304c71a82b3d2038 Mon Sep 17 00:00:00 2001 From: Artem Garmash Date: Tue, 10 Oct 2023 15:57:00 +0300 Subject: [PATCH] fix: insert_overwrite updates for tables with int partitions (#450) --- .../macros/materializations/models/incremental/helpers.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/athena/macros/materializations/models/incremental/helpers.sql b/dbt/include/athena/macros/materializations/models/incremental/helpers.sql index 76c2ed73..e9de7a80 100644 --- a/dbt/include/athena/macros/materializations/models/incremental/helpers.sql +++ b/dbt/include/athena/macros/materializations/models/incremental/helpers.sql @@ -70,7 +70,7 @@ {%- set single_partition = [] -%} {%- for col in row -%} {%- set column_type = adapter.convert_type(table, loop.index0) -%} - {%- if column_type == 'integer' -%} + {%- if column_type == 'integer' or column_type is none -%} {%- set value = col|string -%} {%- elif column_type == 'string' -%} {%- set value = "'" + col + "'" -%}