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

drop temp table is not deleting the actual table data -- need to enable purge #152

Open
hpasumarthi opened this issue May 15, 2024 · 0 comments

Comments

@hpasumarthi
Copy link
Contributor

hello Team
We have realised that dropping the temp table in not enough to remove actual data, we need to enable purge.

Can we enable the property while creating the table or enable it before dropping it.

Option 1: CTAS should include table property 'external.table.purge'='true'
or
Option 2: enable it before deleting the table.

ALTER TABLE table_name SET TBLPROPERTIES('external.table.purge'='true');
DROP TABLE IF EXISTS table_name;

This fix should be applicable for External and iceberg tables.

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

No branches or pull requests

1 participant