Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Incomplete
-
2.4.5
-
None
-
Architecture: Big Endian s390x
Operating Systems:
- RHEL 7.x
- RHEL 8.x
- Ubuntu 16.04
- Ubuntu 18.04
- Ubuntu 19.10
- SLES 12 SP4 and SLES 12 SP5
- SLES 15 SP1
-
Patch
Description
Failing Test Cases in the RecordBinaryComparatorSuite:
- testBinaryComparatorWhenSubtractionIsDivisibleByMaxIntValue
- testBinaryComparatorWhenSubtractionCanOverflowLongValue
Test cases failed after the change related to:
Test Case: testBinaryComparatorWhenSubtractionIsDivisibleByMaxIntValue
- Fails due to changing the compare from `<` to `>` as the test condition (In little endian this is valid when the bytes are reversed, but not for big endian)
Test Case:Â testBinaryComparatorWhenSubtractionCanOverflowLongValue
- Fails due to using Long.compareUnsigned
- Possible Fix: Use signed compare for big endian platforms.
Attachments
Issue Links
- is caused by
-
SPARK-29918 RecordBinaryComparator should check endianness when compared by long
- Resolved