Skip to content

Commit d306492

Browse files
committed
change range of hash of tuple to [0, maxint]
1 parent ded624f commit d306492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/rdd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def portable_hash(x):
7272
for i in x:
7373
h ^= portable_hash(i)
7474
h *= 1000003
75-
h &= 0xffffffff
75+
h &= sys.maxint
7676
h ^= len(x)
7777
if h == -1:
7878
h = -2

0 commit comments

Comments
 (0)