Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/1371#issuecomment-48782037
This was already fixed before in another way -- see the code at line 1061
of rdd.py:
```
if partitionFunc is None:
partitionFunc = lambda x: 0 if x is None else hash(x)
```
I much prefer this to replacing the global "hash" function. Just do the
same fix elsewhere if there are places where it's a problem.
---
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.
---