deepaknettem commented on code in PR #1156:
URL: https://github.com/apache/iceberg-cpp/pull/1156#discussion_r4676620542
##########
src/iceberg/expression/inclusive_metrics_evaluator.cc:
##########
Review Comment:
Can literal be NaN? For example, is a query like this possible: WHERE x IN
{NaN}
If yes, then we could have a case where the file ContainsNansOnly, we return
kRowCannotMatch, and incorrectly skip the file.
##########
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:
if lower bound is NaN, it sounds like we're saying both bounds are
unreliable. If so, should we have a defensive check: if either bounds are NaN,
then don't rely on the bounds at all.
--
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]