liurenjie1024 commented on code in PR #276:
URL: https://github.com/apache/iceberg-rust/pull/276#discussion_r1529564049


##########
crates/iceberg/src/expr/predicate.rs:
##########
@@ -282,15 +282,18 @@ impl Bind for Predicate {
                             return Ok(BoundPredicate::AlwaysTrue);
                         }
                     }
-                    &PredicateOperator::IsNan | &PredicateOperator::NotNan => {
-                        if 
!bound_expr.term.field().field_type.is_floating_type() {
-                            return Err(Error::new(
-                                ErrorKind::DataInvalid,
-                                format!(
-                                    "Expecting floating point type, but found 
{}",
-                                    bound_expr.term.field().field_type
-                                ),
-                            ));
+                    &PredicateOperator::IsNan => {
+                        if 
bound_expr.term.field().field_type.is_floating_type()

Review Comment:
   Sorry, I don't quite the point of this rewriting. Why if `a` is floating or 
required, `a is nan` is always false?



-- 
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-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to