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

[C++] Bitmap word tests cause failures on a big-endian platform

    XMLWordPrintableJSON

Details

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

    Description

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

      [----------] 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)
      

      Attachments

        Issue Links

          Activity

            People

              kiszk Kazuaki Ishizaki
              kiszk Kazuaki Ishizaki
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 0.5h
                  0.5h