Skip to content
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

Conversation

bebbo203
Copy link
Contributor

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.

@@ -160,6 +160,7 @@

{% if not elementary.has_temp_table_support() %}
{% do adapter.drop_relation(temp_relation) %}
{% do adapter.clean_up_table(temp_relation) %}
Copy link
Collaborator

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?

Copy link
Contributor Author

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

@haritamar
Copy link
Collaborator

I think this looks good!
There is an unrelated failing test (due to another PR that was recently merged) but here we're good to go.

@haritamar haritamar merged commit b9de5f8 into elementary-data:master May 28, 2024
9 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants