joyhaldar opened a new issue, #15063:
URL: https://github.com/apache/iceberg/issues/15063

   ### Feature Request / Improvement
   
   ### Current Behavior
   
[ManifestEvaluator](https://github.com/apache/iceberg/blob/main/api/src/main/java/org/apache/iceberg/expressions/ManifestEvaluator.java)
 does not prune manifests for `NOT IN` and `!=` predicates, even when the 
manifest contains a single distinct partition value where `lower == upper`.
   
   ### Proposed Solution
   When `lower == upper` and the manifest has no nulls or NaNs, we can safely 
prune:
   * For `NOT IN`: if the single partition value is in the exclusion list
   * For `!=`: if the single partition value equals the literal
   
   This mirrors the optimization added in #14593 for 
[InclusiveMetricsEvaluator](https://github.com/apache/iceberg/blob/main/api/src/main/java/org/apache/iceberg/expressions/InclusiveMetricsEvaluator.java),
 but applied at the manifest level.
   
   ### Query engine
   
   None
   
   ### Willingness to contribute
   
   - [x] I can contribute this improvement/feature independently
   - [ ] I would be willing to contribute this improvement/feature with 
guidance from the Iceberg community
   - [ ] I cannot contribute this improvement/feature at this time


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