Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8745

[C++] Bitmap.ToString causes failures on a big-endian platform

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • C++

    Description

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

      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)
      

      Attachments

        Issue Links

          Activity

            People

              kiszk Kazuaki Ishizaki
              kiszk Kazuaki Ishizaki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h