Github user mateiz commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1371#discussion_r15148144
  
    --- Diff: python/pyspark/rdd.py ---
    @@ -48,6 +48,35 @@
     __all__ = ["RDD"]
     
     
    +# TODO: for Python 3.3+, PYTHONHASHSEED should be reset to disable 
randomized
    +# hash for string
    +def portable_hash(x):
    +    """
    +    This function returns consistant hash code for builtin types, 
especially
    +    for None and tuple with None.
    +
    +    The algrithm is similar to that one used by CPython 2.7
    --- End diff --
    
    Also explain what "consistent hash code means", this comment doesn't say 
anything about the hash code of None being different across machines by default


---
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.
---

Reply via email to