Skip to content

Commit

Permalink
Merge pull request #1 from ministryofjustice/PDE-1428/cleanup-externa…
Browse files Browse the repository at this point in the history
…l-location

PDE-1428: fix HIVE_PATH_ALREADY_EXISTS error
  • Loading branch information
nicholsondarius authored Mar 9, 2022
2 parents 8adeea2 + e8054c9 commit 67e4d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,7 @@ cython_debug/
.idea/

# Project specific
test.py
test.py

# pyenv
.python-version
4 changes: 1 addition & 3 deletions dbt/include/athena/macros/adapters/relation.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{% 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 67e4d91

Please sign in to comment.