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

Fix storage table data clean up while dropping iceberg materialized view #24397

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

anusudarsan
Copy link
Member

@anusudarsan anusudarsan commented Dec 6, 2024

Description

This is for cleaning up data files in legacy mode i.e iceberg.materialized-views.hide-storage-table is set to false. Delegating the drop table to metastore does not clean up the data files since for HMS, the iceberg table is registered as an "external" table. So to fix this instead of delegating to metastore, have the connector do the drop of the table and data files associated with it.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Dec 6, 2024
@github-actions github-actions bot added the iceberg Iceberg connector label Dec 6, 2024
@anusudarsan anusudarsan force-pushed the anu/fix-data-drop-iceberg-mv branch from 63aa304 to bed3be2 Compare December 6, 2024 19:06
Copy link
Contributor

@SemionPar SemionPar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This is for cleaning up data files in legacy mode i.e iceberg.materialized-views.hide-storage-table is set to false.
Delegating the drop table to metastore does not clean up the data files since for HMS,
the iceberg table is registered as an "external" table. So to fix this instead of delegating to metastore,
have the connector do the drop of the table and data files associated with it.
@anusudarsan anusudarsan force-pushed the anu/fix-data-drop-iceberg-mv branch from bed3be2 to c7a2d54 Compare December 10, 2024 16:05
@ebyhr ebyhr merged commit 6dbbfd9 into trinodb:master Dec 10, 2024
42 checks passed
@github-actions github-actions bot added this to the 468 milestone Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

4 participants