Michael Munday created SPARK-32892:
--------------------------------------

             Summary: Murmur3 and xxHash64 implementations do not produce the 
correct results on big-endian platforms
                 Key: SPARK-32892
                 URL: https://issues.apache.org/jira/browse/SPARK-32892
             Project: Spark
          Issue Type: Bug
          Components: Spark Core, SQL
    Affects Versions: 3.0.1
            Reporter: Michael Munday


The Murmur3 and xxHash64 implementations in Spark do not produce the correct 
results on big-endian systems. This causes test failures on my target platform 
(s390x).

These hash functions require that multi-byte chunks be interpreted as integers 
encoded in *little-endian* byte order. This requires byte reversal when using 
multi-byte unsafe operations on big-endian platforms.

I have a PR ready for discussion and review.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to