-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Athena temp tables cleaning #714
Fixed Athena temp tables cleaning #714
Conversation
- Added clean_up_tables to handle_tests_results and clean_elementary_test_tables to delete files from S3
@@ -160,6 +160,7 @@ | |||
|
|||
{% if not elementary.has_temp_table_support() %} | |||
{% do adapter.drop_relation(temp_relation) %} | |||
{% do adapter.clean_up_table(temp_relation) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bebbo203 - this fails in Databricks since it doesn't have this column.
I'm guessing you should use fully_drop_relation
here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Sorry for the mistake. I've updated the branch by pushing a fix
I think this looks good! |
Solves #1514.
Specifically for dbt-athena-community, this fix aims to clean the temporary tables in a better way, including dropping files from S3 in case of external tables.