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

    https://github.com/apache/spark/pull/21437#discussion_r191622279
  
    --- Diff: python/pyspark/taskcontext.py ---
    @@ -88,3 +89,9 @@ def taskAttemptId(self):
             TaskAttemptID.
             """
             return self._taskAttemptId
    +
    +    def getLocalProperty(self, key):
    +        """
    +        Get a local property set upstream in the driver, or None if it is 
missing.
    --- End diff --
    
    yeah. I added the default=None to make it super obvious. i see no harm in 
making the code more intuitive.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to