zhjwpku commented on code in PR #1186:
URL: https://github.com/apache/iceberg-cpp/pull/1186#discussion_r4727929927
##########
src/iceberg/expression/strict_metrics_evaluator.cc:
##########
@@ -408,6 +417,9 @@ class StrictMetricsVisitor : public BoundVisitor<bool> {
auto upper_it = data_file_.upper_bounds.find(id);
if (upper_it != data_file_.upper_bounds.cend()) {
ICEBERG_ASSIGN_OR_RAISE(auto upper, ParseBound(expr, upper_it->second));
+ if (upper.IsNaN()) {
+ return kRowsMightNotMatch;
Review Comment:
Strict NOT IN discards a usable lower bound. With lower = 10, x NOT IN (1,
2) must match every row, correct me if I'm wrong :-)
--
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]