-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
2954950
to
886e730
Compare
There was a problem hiding this 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
There was a problem hiding this 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.
core/src/test/java/org/apache/iceberg/hadoop/TestCatalogUtilDropTable.java
Outdated
Show resolved
Hide resolved
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) { |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
I will open the follow up PR for partition stats files today. |
Co-authored-by: Steve Zhang <hongyue_zhang@apple.com>
Co-authored-by: Steve Zhang <hongyue_zhang@apple.com>
Co-authored-by: Steve Zhang <hongyue_zhang@apple.com>
This PR attempt to include puffin stats files as part of CatalogUtil table cleanup
CC @RussellSpitzer @findepi