aokolnychyi commented on a change in pull request #2936:
URL: https://github.com/apache/iceberg/pull/2936#discussion_r688888061
##########
File path: api/src/main/java/org/apache/iceberg/PartitionField.java
##########
@@ -67,6 +68,20 @@ public String name() {
return transform;
}
+ /**
+ * Returns true if this partition field is compatible with another partition
field.
+ * <p>
+ * Partition fields are considered compatible if they have the same source
ID, field ID and their
+ * transforms are equivalent or one of them is always producing nulls.
+ */
+ boolean compatibleWith(PartitionField other) {
Review comment:
Fixed.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]