-
Notifications
You must be signed in to change notification settings - Fork 79
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
Clean up tables when materialization isn´t incremental #49
Conversation
I tested these changes on my local project and they worked great. Thanks for making these changes! |
As this branch has conflicts and has not been updated recently, I created a new PR that has been rebased: #73 |
@courentin For example, since the external_location is set(static path), although the table is recreated, creating a new table will fail. what issue did you try to fix with this change? |
@Gatsby-Lee that's correct. I added a global static
Then using this fix, it still throws a The solution, I think, is to make the
Or waiting for #50 to be merged 🤞 Currently, I have an ugly solution where I override the Nevertheless, merging this PR would help me out a lot to clean up the model folders on S3, and it unblocks PR #50 too. Any change to merge this @courentin @Tomme ? 🙏 |
Is this PR superseded by #73? |
Same fix is in #73 indeed, but 73 does not have conflicts 👍 |
@jessedobbelaere I might miss sth to understand your change.
doesn't |
Hi @Gatsby-Lee they're not my changes, but I believe the issue got introduced in https://github.com/Tomme/dbt-athena/pull/43/files In the past, table data always got cleaned up before dropping, as you see in the diff of #43 . Since the changes in #43 the value of Anyway, #73 introduces the same bugfix as this PR, by someone else, but it's more up to date with master and ready to merge. Hopefully someone can do that 🙏 |
@jessedobbelaere got it. Thank you |
Resolved by #73, thank you for your contribution though! |
thank you @jessedobbelaere @Tomme |
Minor change to adapters.sql logic to clean_up table when materialization isn´t incremental.