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

    https://github.com/apache/spark/pull/1371#discussion_r15148140
  
    --- 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 --
    
    My comment from before was deleted, but please add a link to where the 
implementation is from, or a reference to the Python source code for this


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