joyhaldar opened a new issue, #14592: URL: https://github.com/apache/iceberg/issues/14592
### Feature Request / Improvement ## Current Behavior `[InclusiveMetricsEvaluator](https://github.com/apache/iceberg/blob/main/api/src/main/java/org/apache/iceberg/expressions/InclusiveMetricsEvaluator.java)` does not prune files for `NOT IN` and `!=` predicates, even when the file contains a single distinct value where `min == max`. ## Proposed Solution When `min == max` and the file has no nulls, we can safely prune: - For `NOT IN`: if the single value is in the exclusion list - For `!=`: if the single value equals the literal Related discussion: [[Slack thread link](https://apache-iceberg.slack.com/archives/C03LG1D563F/p1762721390879659)] ### 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]
