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

[Java] Failed Arrow Vector on big-endian platform

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0
    • Java

    Description

      The following test failure occurs on a big-endian platform

      mvn -B -Drat.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dflatc.download.skip=true -rf :arrow-vector test
      ...
      [INFO] Running org.apache.arrow.vector.TestDecimalVector
      [ERROR] Tests run: 9, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.008 s <<< FAILURE! - in org.apache.arrow.vector.TestDecimalVector
      [ERROR] setUsingArrowBufOfLEInts  Time elapsed: 0.001 s  <<< FAILURE!
      java.lang.AssertionError: expected:<705.32> but was:<-20791293.44>
      	at org.apache.arrow.vector.TestDecimalVector.setUsingArrowBufOfLEInts(TestDecimalVector.java:295)
      
      [ERROR] setUsingArrowLongLEBytes  Time elapsed: 0.001 s  <<< FAILURE!
      java.lang.AssertionError: expected:<9223372036854775807> but was:<-129>
      	at org.apache.arrow.vector.TestDecimalVector.setUsingArrowLongLEBytes(TestDecimalVector.java:322)
      
      [ERROR] testLongReadWrite  Time elapsed: 0.001 s  <<< FAILURE!
      java.lang.AssertionError: expected:<-2> but was:<-72057594037927937>
      	at org.apache.arrow.vector.TestDecimalVector.testLongReadWrite(TestDecimalVector.java:176)
      ...
      [ERROR] Failures: 
      [ERROR]   TestDecimalVector.setUsingArrowBufOfLEInts:295 expected:<705.32> but was:<-20791293.44>
      [ERROR]   TestDecimalVector.setUsingArrowLongLEBytes:322 expected:<9223372036854775807> but was:<-129>
      [ERROR]   TestDecimalVector.testLongReadWrite:176 expected:<-2> but was:<-72057594037927937>
      ...
      

      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 - 2h 10m
                  2h 10m