pvary commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4405189871

   Shall we add a new predicate for the `Ignored` columns and handle this 
upstream in the expression? Then we could have a "correct" result in many cases.
   
   ```
     /**
      * Sentinel marker for a predicate that referenced a column outside the 
allowed set and therefore
      * cannot be evaluated. Distinct from {@link AlwaysTrue} so that {@code 
not(IGNORED)} does not
      * become {@code AlwaysFalse} and {@code or(x, IGNORED)} does not silently 
drop matching rows.
      */
     private static class Ignored implements FilterPredicate {
       static final Ignored INSTANCE = new Ignored();
   
       @Override
       public <R> R accept(Visitor<R> visitor) {
         throw new UnsupportedOperationException("Ignored is a placeholder 
only");
       }
     }
   ```


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