rdblue commented on code in PR #10755: URL: https://github.com/apache/iceberg/pull/10755#discussion_r1697257962
########## core/src/main/java/org/apache/iceberg/TableMetadata.java: ########## @@ -597,6 +597,20 @@ public TableMetadata replaceProperties(Map<String, String> rawProperties) { .build(); } + /** + * Prune the unused partition specs from the table metadata. + * + * @param specsToRemove the partition specs to be removed + * @return the new table metadata with the unused partition specs removed + */ + TableMetadata pruneUnusedSpecs(List<PartitionSpec> specsToRemove) { Review Comment: I probably was not very clear, but I don't think that this should be a separate method on `TableMetadata`. We are changing this approach to use the builder directly instead. -- 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