79327922

Date: 2025-01-03 23:31:01
Score: 0.5
Natty:
Report link

In Spark, xxhash64 does not use a customizable seed; it may default to 0 or a predefined value. In Python, xxhash.xxh64() requires an explicit seed, which defaults to 0 if not provided.

So, first find the seed used in Spark (consult the documentation or test values). then apply the same in Python.

import xxhash seed = 0 # Replace with the actual seed value used in Spark print(xxhash.xxh64('b', seed=seed).intdigest())

Reasons:
  • No code block (0.5):
Posted by: Ali Saberi