You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Kazuaki Ishizaki (Jira)" <ji...@apache.org> on 2020/05/10 08:14:00 UTC

[jira] [Created] (ARROW-8756) [C++] Bitmap word tests cause failures on a big-endian platform

Kazuaki Ishizaki created ARROW-8756:
---------------------------------------

             Summary: [C++] Bitmap word tests cause failures on a big-endian platform
                 Key: ARROW-8756
                 URL: https://issues.apache.org/jira/browse/ARROW-8756
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Kazuaki Ishizaki


The following two tests in arrow-utility-tests cause failures on big-endian platforms

{code}
[----------] 5 tests from Bitmap
[ RUN      ] Bitmap.ShiftingWordsOptimization
/home/ishizaki/Arrow/arrow-rle/cpp/src/arrow/util/bit_util_test.cc:1133: Failure
Expected equality of these values:
  BitUtil::GetBit(bytes, i)
    Which is: false
  bool((word >> i) & 1)
    Which is: true
[  FAILED  ] Bitmap.ShiftingWordsOptimization (0 ms)
...
[ RUN      ] Bitmap.VisitWordsAnd
/home/ishizaki/Arrow/arrow-rle/cpp/src/arrow/util/bit_util_test.cc:1289: Failure
Value of: BitmapEquals(actual_buffer->data(), min_offset, expected_buffer->data(), 0, num_bits)
  Actual: false
Expected: true
left_offset:1  bits:8191  right_offset:0

@@ -71, +71 @@
-false
@@ -75, +74 @@
+true
@@ -79, +79 @@
-true
@@ -85, +84 @@
+false
@@ -183, +183 @@
-true
@@ -185, +184 @@
+false
@@ -199, +199 @@
-true
@@ -201, +200 @@
-true
@@ -203, +201 @@
+true
@@ -210, +209 @@
+true
@@ -223, +223 @@
-true
...
@@ -7967, +7967 @@
-false
+true
@@ -7975, +7975 @@
-true
@@ -7977, +7976 @@
+false
@@ -8007, +8007 @@
-true
@@ -8011, +8010 @@
+false
@@ -8015, +8015 @@
-true
@@ -8024, +8023 @@
+false
@@ -8039, +8039 @@
-true
@@ -8044, +8043 @@
+false
@@ -8063, +8063 @@
-true
@@ -8067, +8066 @@
+false

[  FAILED  ] Bitmap.VisitWordsAnd (138 ms)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)