zhjwpku commented on code in PR #1156:
URL: https://github.com/apache/iceberg-cpp/pull/1156#discussion_r4662657529
##########
src/iceberg/expression/inclusive_metrics_evaluator.cc:
##########
@@ -248,31 +248,19 @@ class InclusiveMetricsVisitor : public BoundVisitor<bool>
{
}
ICEBERG_ASSIGN_OR_RAISE(auto lower, LowerBound(expr));
- if (!lower.has_value() || lower->IsNull() || lower->IsNaN()) {
+ if (lower.has_value() && lower->IsNaN()) {
Review Comment:
The old check returned early when the lower bound was missing or null, so we
never checked the upper bound. For example, if the upper bound is 50, we can
still skip the file for IN (51, 70). We still return early for a NaN lower
bound because it means the bounds are unreliable.
--
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]