You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by tu...@apache.org on 2022/11/09 10:53:54 UTC

[arrow-rs] branch master updated: Faster f64 inequality (#3065)

This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new af5f1e4f0 Faster f64 inequality (#3065)
af5f1e4f0 is described below

commit af5f1e4f0a8bd14240153953700fe16b072315be
Author: Raphael Taylor-Davies <17...@users.noreply.github.com>
AuthorDate: Wed Nov 9 23:53:47 2022 +1300

    Faster f64 inequality (#3065)
---
 arrow-array/src/arithmetic.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrow-array/src/arithmetic.rs b/arrow-array/src/arithmetic.rs
index 2a8db2dd1..769c013d9 100644
--- a/arrow-array/src/arithmetic.rs
+++ b/arrow-array/src/arithmetic.rs
@@ -313,7 +313,7 @@ macro_rules! native_type_float_op {
             }
 
             fn is_ne(self, rhs: Self) -> bool {
-                self.total_cmp(&rhs).is_ne()
+                !self.is_eq(rhs)
             }
 
             fn is_lt(self, rhs: Self) -> bool {