dshogan-amzn commented on code in PR #18933:
URL: https://github.com/apache/iceberg/pull/18933#discussion_r4756036833
##########
core/src/main/java/org/apache/iceberg/ManifestReader.java:
##########
@@ -400,7 +400,7 @@ private Evaluator evaluator() {
private InclusiveMetricsEvaluator metricsEvaluator() {
if (lazyMetricsEvaluator == null) {
this.lazyMetricsEvaluator =
- new InclusiveMetricsEvaluator(spec.schema(), rowFilter,
caseSensitive);
+ InclusiveMetricsEvaluator.forRowFilter(rowFilter, spec,
caseSensitive);
Review Comment:
> what happens if a caller uses select(...) or project(...) and omits or
partially projects partition fields?
Good callout, it would prune files it otherwise shouldn't. I'll add the
fallback as suggested here.
--
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]