nastra commented on code in PR #10755: URL: https://github.com/apache/iceberg/pull/10755#discussion_r1853408518
########## api/src/main/java/org/apache/iceberg/ExpireSnapshots.java: ########## @@ -118,4 +118,16 @@ public interface ExpireSnapshots extends PendingUpdate<List<Snapshot>> { * @return this for method chaining */ ExpireSnapshots cleanExpiredFiles(boolean clean); + + /** + * Allows expiration of unreachable metadata, such as partition specs as part of the operation. + * + * @param clean setting this to true will remove metadata(such as partition spec) that are no + * longer reachable by any snapshot + * @return this for method chaining + */ + default ExpireSnapshots cleanExpiredMeta(boolean clean) { Review Comment: +1 to use `cleanExpiredMetadata` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org