liyafan82 commented on a change in pull request #7748:
URL: https://github.com/apache/arrow/pull/7748#discussion_r471347282



##########
File path: cpp/src/arrow/compute/kernels/scalar_arithmetic_test.cc
##########
@@ -139,13 +139,7 @@ class TestBinaryArithmetic : public TestBase {
     ValidateAndAssertApproxEqual(actual.make_array(), expected);
 
     // Also check (Scalar, Scalar) operations
-    const int64_t length = expected->length();
-    for (int64_t i = 0; i < length; ++i) {
-      const auto expected_scalar = *expected->GetScalar(i);
-      ASSERT_OK_AND_ASSIGN(
-          actual, func(*left->GetScalar(i), *right->GetScalar(i), options_, 
nullptr));
-      AssertScalarsEqual(*expected_scalar, *actual.scalar(), /*verbose=*/true);
-    }
+    // TODO: support scalar approx equal

Review comment:
       I have restored the checks. 
   I still think it makes sense to provide approx equality checks for scalar?




----------------------------------------------------------------
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.

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


Reply via email to