Skip to content

Commit

Permalink
Fix trino temp tables cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrluis committed Jul 8, 2024
1 parent 8572db5 commit eedf5d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion macros/edr/tests/test_utils/clean_up_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@
{% for relation in relations %}
{% do adapter.clean_up_table(relation) %}
{% endfor %}
{% endmacro %}
{% endmacro %}

{% macro trino__clean_up_tables(relations) %}
{% for relation in relations %}
{% do adapter.clean_up_table(relation) %}
{% endfor %}
{% endmacro %}
7 changes: 6 additions & 1 deletion macros/utils/table_operations/fully_drop_relation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@
{% macro athena__fully_drop_relation(relation) %}
{% do adapter.clean_up_table(relation) %}
{% do adapter.drop_relation(relation) %}
{% endmacro %}
{% endmacro %}

{% macro trino__fully_drop_relation(relation) %}
{% do adapter.clean_up_table(relation) %}
{% do adapter.drop_relation(relation) %}
{% endmacro %}

0 comments on commit eedf5d1

Please sign in to comment.