From 20fa702d1e3578652dc7c096c468350d2904deb6 Mon Sep 17 00:00:00 2001 From: Gordon Ball Date: Tue, 25 Jan 2022 11:17:58 +0100 Subject: [PATCH] Revert "Avoid clean up of table wen incremental_strategy is not insert_overwrite (#43)" This reverts commit 9baa80c40a833c958a7b56c1585157da965eb799. --- dbt/include/athena/macros/adapters.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dbt/include/athena/macros/adapters.sql b/dbt/include/athena/macros/adapters.sql index fcd85e01..fd76d00b 100644 --- a/dbt/include/athena/macros/adapters.sql +++ b/dbt/include/athena/macros/adapters.sql @@ -112,9 +112,7 @@ {% endmacro %} {% macro athena__drop_relation(relation) -%} - {% if config.get('incremental_strategy') == 'insert_overwrite' %} - {%- do adapter.clean_up_table(relation.schema, relation.table) -%} - {% endif %} + {%- do adapter.clean_up_table(relation.schema, relation.table) -%} {% call statement('drop_relation', auto_begin=False) -%} drop {{ relation.type }} if exists {{ relation }} {%- endcall %}