nastra commented on code in PR #17413:
URL: https://github.com/apache/iceberg/pull/17413#discussion_r3773132275


##########
api/src/main/java/org/apache/iceberg/expressions/UnboundPredicate.java:
##########
@@ -127,15 +127,15 @@ private Expression bindUnaryOperation(StructType struct, 
BoundTerm<T> boundTerm)
     switch (op()) {
       case IS_NULL:
         if (!boundTerm.producesNull()
-            && allAncestorFieldsAreRequired(struct, 
boundTerm.ref().fieldId())) {
+            && !TypeUtil.isNullable(struct.asSchema(), 
boundTerm.ref().fieldId())) {

Review Comment:
   after throwing an error in TypeUtil#alwaysPresent() on an unknown field ID, 
we can't use this method here anymore because it's a behavioral change. I've 
reverted the changes here



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

Reply via email to