diff --git a/crates/nano-arrow/src/util/total_ord.rs b/crates/nano-arrow/src/util/total_ord.rs index a3ab30e103ab..f6fe19bfbb5a 100644 --- a/crates/nano-arrow/src/util/total_ord.rs +++ b/crates/nano-arrow/src/util/total_ord.rs @@ -228,8 +228,8 @@ macro_rules! impl_eq_ord_float { impl TotalEq for $f { #[inline(always)] fn tot_eq(&self, other: &Self) -> bool { - if self.is_nan() && other.is_nan() { - true + if self.is_nan() { + other.is_nan() } else { self == other }