pvary commented on code in PR #12651:
URL: https://github.com/apache/iceberg/pull/12651#discussion_r2026872895


##########
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()) {
+        return false;
+      }

Review Comment:
   nit: newline after this. See: 
https://iceberg.apache.org/contribute/#block-spacing



-- 
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

Reply via email to