From 4d12ac1ef7e58fcc91e60e010b60f5ff78348b6f Mon Sep 17 00:00:00 2001 From: "Vincent.PAUWELS" Date: Mon, 13 Nov 2023 12:11:31 +0100 Subject: [PATCH] duplicate line of code --- .../glue/macros/materializations/incremental/incremental.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/dbt/include/glue/macros/materializations/incremental/incremental.sql b/dbt/include/glue/macros/materializations/incremental/incremental.sql index 4e0dbf38..cc9b0093 100644 --- a/dbt/include/glue/macros/materializations/incremental/incremental.sql +++ b/dbt/include/glue/macros/materializations/incremental/incremental.sql @@ -55,7 +55,6 @@ {% endif %} {% elif existing_relation_type == 'view' or should_full_refresh() %} {{ glue__drop_relation(target_relation) }} - {% do glue__drop_relation(existing_relation) %} {% if file_format == 'delta' %} {{ adapter.delta_create_table(target_relation, sql, unique_key, partition_by, custom_location) }} {% set build_sql = "select * from " + target_relation.schema + "." + target_relation.identifier + " limit 1 " %}