Skip to content

Commit

Permalink
resolve Tomme#54
Browse files Browse the repository at this point in the history
Tables not cleaned up if materialized = table
and static external location
  • Loading branch information
oriordanniall committed Mar 10, 2022
1 parent 0cafe2c commit d67d848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/include/athena/macros/adapters/relation.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro athena__drop_relation(relation) -%}
{% if config.get('incremental_strategy') == 'insert_overwrite' %}
{% if config.get('incremental_strategy') != 'append' %}
{%- do adapter.clean_up_table(relation.schema, relation.table) -%}
{% endif %}
{% call statement('drop_relation', auto_begin=False) -%}
Expand Down

0 comments on commit d67d848

Please sign in to comment.