Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/8796#discussion_r39724972
--- Diff: python/pyspark/rdd.py ---
@@ -84,7 +84,7 @@ def portable_hash(x):
h ^= len(x)
if h == -1:
h = -2
- return h
+ return int(h)
--- End diff --
CC @davies the real question is whether this hash is intended to be 32-bit
or 64-bit, and my Python knowledge is too limited to reason about this. It
appears that it's computing a 64-bit hash given the size of `sys.maxsize` but
maybe that's platform dependent or something. Anyway: I kind of suspect you're
right that it's 32-bit, but I think that has to be verified first.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]