EdisonWang created SPARK-29918:
----------------------------------
Summary: RecordBinaryComparator should check endianness when
compared by long
Key: SPARK-29918
URL: https://issues.apache.org/jira/browse/SPARK-29918
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.0.0
Reporter: EdisonWang
If the architecture supports unaligned or the offset is 8 bytes aligned,
RecordBinaryComparator compare 8 bytes at a time by reading 8 bytes as a long.
Otherwise, it will compare bytes by bytes.
However, on little-endian machine, the result of compared by a long value and
compared bytes by bytes maybe different. If the architectures in a yarn cluster
is different(Some is unaligned-access capable while others not), then the
sequence of two records after sorted is undetermined, which will result in the
same problem as in https://issues.apache.org/jira/browse/SPARK-23207
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]