adrians commented on code in PR #12651: URL: https://github.com/apache/iceberg/pull/12651#discussion_r2026419364
########## api/src/main/java/org/apache/iceberg/PartitionSpec.java: ########## @@ -265,6 +265,22 @@ public boolean equals(Object other) { return Arrays.equals(fields, that.fields); } + public boolean equalOrFinerThan(PartitionSpec that) { + if (this.fields.length < that.fields.length) { + return false; + } + + for (int i = 0; i < that.fields.length; i++) { + if (this.fields[i].sourceId() != that.fields[i].sourceId()) { Review Comment: Agreed, that constraint is not necessary - will change. -- 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