-
Notifications
You must be signed in to change notification settings - Fork 3k
Core: remove statistic files in CatalogUtil:dropTableData #9305
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
Conversation
2954950 to
886e730
Compare
RussellSpitzer
left a comment
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
ajantha-bhat
left a comment
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. |
| 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 <[email protected]>
Co-authored-by: Steve Zhang <[email protected]>
Co-authored-by: Steve Zhang <[email protected]>
This PR attempt to include puffin stats files as part of CatalogUtil table cleanup
CC @RussellSpitzer @findepi