Skip to content

Commit

Permalink
Revert "Avoid clean up of table wen incremental_strategy is not inser…
Browse files Browse the repository at this point in the history
…t_overwrite (Tomme#43)"

This reverts commit 9baa80c.
  • Loading branch information
chronitis committed Jan 25, 2022
1 parent 18d52a8 commit 20fa702
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dbt/include/athena/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 20fa702

Please sign in to comment.