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


##########
api/src/main/java/org/apache/iceberg/expressions/UnboundPredicate.java:
##########
@@ -122,17 +123,21 @@ public Expression bind(StructType struct, boolean 
caseSensitive) {
     return bindLiteralOperation(bound);
   }
 
-  private Expression bindUnaryOperation(BoundTerm<T> boundTerm) {
+  private Expression bindUnaryOperation(StructType struct, BoundTerm<T> 
boundTerm) {
+    boolean allFieldsAreRequired =
+        TypeUtil.findParents(struct.asSchema(), 
boundTerm.ref().fieldId()).stream()

Review Comment:
   we would evaluate these whenever we have an unbound predicate that we want 
to bind. I've updated this so that it's only evaluated when having a `IS_NULL` 
or `NOT_NULL` and when `!boundTerm.producesNull()` evaluates to true



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