You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "joyhaldar (via GitHub)" <gi...@apache.org> on 2025/11/15 18:32:38 UTC
[I] NOT IN and != predicates do not prune files when min == max [iceberg]
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] NOT IN and != predicates do not prune files when min == max [iceberg]
Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer closed issue #14592: NOT IN and != predicates do not prune files when min == max
URL: https://github.com/apache/iceberg/issues/14592
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org