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

Core: remove statistic files in CatalogUtil:dropTableData #9305

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

dramaticlly
Copy link
Contributor

This PR attempt to include puffin stats files as part of CatalogUtil table cleanup

CC @RussellSpitzer @findepi

@github-actions github-actions bot added the core label Dec 14, 2023
Copy link
Member

@RussellSpitzer RussellSpitzer left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@ajantha-bhat ajantha-bhat left a comment

Choose a reason for hiding this comment

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

LGTM.

with a minor nit on naming.

@ajantha-bhat
Copy link
Member

There is also a partition stats file added recently 6e21bbf

We should handle this for them aswell.

I can have a follow up PR, if it is too much to handle in this PR.

@@ -181,4 +205,34 @@ private Set<String> metadataLocations(TableMetadata tableMetadata) {
metadataLocations.add(tableMetadata.metadataFileLocation());
return metadataLocations;
}

private Set<String> statsLocations(TableMetadata tableMetadata) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: these two new private methods can be static

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

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

This change looks good @dramaticlly , thanks for the fix! Thanks @ajantha-bhat @RussellSpitzer for the reviews. I'll go ahead and merge this.

@amogh-jahagirdar amogh-jahagirdar merged commit 3aa0fcd into apache:main Jan 4, 2024
41 checks passed
@ajantha-bhat
Copy link
Member

There is also a partition stats file added recently 6e21bbf
We should handle this for them aswell.

I will open the follow up PR for partition stats files today.

lisirrx pushed a commit to lisirrx/iceberg that referenced this pull request Jan 4, 2024
Co-authored-by: Steve Zhang <hongyue_zhang@apple.com>
@dramaticlly dramaticlly deleted the dropStats branch January 9, 2024 00:14
geruh pushed a commit to geruh/iceberg that referenced this pull request Jan 26, 2024
Co-authored-by: Steve Zhang <hongyue_zhang@apple.com>
devangjhabakh pushed a commit to cdouglas/iceberg that referenced this pull request Apr 22, 2024
Co-authored-by: Steve Zhang <hongyue_zhang@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants