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/09 08:02:00 UTC

[jira] [Created] (ARROW-8745) [C++] Bitmap.ToString causes failures on a big-endian platform

Kazuaki Ishizaki created ARROW-8745:
---------------------------------------

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


The new test causes the failure on a big-endian platform.

{code}
1: [----------] 5 tests from Bitmap
1: [ RUN      ] Bitmap.ShiftingWordsOptimization
1: [       OK ] Bitmap.ShiftingWordsOptimization (7 ms)
1: [ RUN      ] Bitmap.VisitWords
1: [       OK ] Bitmap.VisitWords (3 ms)
1: [ RUN      ] Bitmap.VisitPartialWords
1: [       OK ] Bitmap.VisitPartialWords (0 ms)
1: [ RUN      ] Bitmap.ToString
1: /home/ishizaki/Arrow/arrow-rle/cpp/src/arrow/util/bit_util_test.cc:1265: Failure
1: Expected equality of these values:
1:   Bitmap(bitmap, 0, 34).ToString()
1:     Which is: "00000000 00000000 00000000 00000000 00"
1:   "00110101 01010011 00000000 00000000 00"
1: /home/ishizaki/Arrow/arrow-rle/cpp/src/arrow/util/bit_util_test.cc:1267: Failure
1: Expected equality of these values:
1:   Bitmap(bitmap, 0, 16).ToString()
1:     Which is: "00000000 00000000"
1:   "00110101 01010011"
1: /home/ishizaki/Arrow/arrow-rle/cpp/src/arrow/util/bit_util_test.cc:1268: Failure
1: Expected equality of these values:
1:   Bitmap(bitmap, 0, 11).ToString()
1:     Which is: "00000000 000"
1:   "00110101 010"
1: /home/ishizaki/Arrow/arrow-rle/cpp/src/arrow/util/bit_util_test.cc:1269: Failure
1: Expected equality of these values:
1:   Bitmap(bitmap, 3, 8).ToString()
1:     Which is: "00000000"
1:   "10101010"
1: [  FAILED  ] Bitmap.ToString (1 ms)
1: [ RUN      ] Bitmap.VisitWordsAnd
1: [       OK ] Bitmap.VisitWordsAnd (708 ms)
1: [----------] 5 tests from Bitmap (719 ms total)
{code}



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