Skip to content

Commit

Permalink
resolve #54 (#73)
Browse files Browse the repository at this point in the history
Tables not cleaned up if materialized = table
and static external location

Co-authored-by: Niall O'Riordan <nialloriordan@fundingcircle.com>
  • Loading branch information
nialloriordan and oriordanniall authored Jun 6, 2022
1 parent 0546ca9 commit b641dad
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 b641dad

Please sign in to comment.