andishgar opened a new issue, #46776:
URL: https://github.com/apache/arrow/issues/46776

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   As [mentioned 
here](https://github.com/apache/arrow/issues/46767#issuecomment-2959468747), 
`arrow::EqualOptions::atol_` is not applied when comparing `arrow::Tensor` and` 
arrow::SparseTensor`.
   
   Additionally, I found that signed zero is not handled correctly in 
`arrow::SparseTensor`. For example, the following assertion unexpectedly passes:
   
   ```c++
   TEST(Tensor,FloatComparasion) {
     std::vector<double> v1 = {+0.0};
     std::vector<double> v2 = {-0.0};
     std::shared_ptr<Buffer> b1 = Buffer::Wrap(v1);
     std::shared_ptr<Buffer> b2 = Buffer::Wrap(v2);
     NumericTensor<DoubleType> t1(b1, {1, 1});
     NumericTensor<DoubleType> t2(b2, {1, 1});
     auto st1 = SparseCSCMatrix::Make(t1).ValueOrDie();
     auto st2 = SparseCSCMatrix::Make(t2).ValueOrDie();
     ASSERT_FALSE(st1->Equals(*st2, 
EqualOptions::Defaults().signed_zeros_equal(true)));
     ASSERT_FALSE(st1->Equals(*st2, 
EqualOptions::Defaults().signed_zeros_equal(false)));
   }
   ``` 
   
   ### Component(s)
   
   C++


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

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

Reply via email to