Skip to content

[Java] Failed Arrow Vector on big-endian platform #25898

Description

@asfimport

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>
...

Reporter: Kazuaki Ishizaki / @kiszk
Assignee: Kazuaki Ishizaki / @kiszk

PRs and other links:

Note: This issue was originally created as ARROW-9861. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions