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

    https://github.com/apache/spark/pull/22085#discussion_r209835246
  
    --- Diff: python/pyspark/taskcontext.py ---
    @@ -95,3 +95,92 @@ def getLocalProperty(self, key):
             Get a local property set upstream in the driver, or None if it is 
missing.
             """
             return self._localProperties.get(key, None)
    +
    +
    +class BarrierTaskContext(TaskContext):
    +
    +    """
    +    .. note:: Experimental
    +
    +    A TaskContext with extra info and tooling for a barrier stage. To 
access the BarrierTaskContext
    +    for a running task, use:
    +    L{BarrierTaskContext.get()}.
    +
    +    .. versionadded:: 2.4.0
    +    """
    +
    +    _barrierContext = None
    +
    +    def __init__(self):
    +        """Construct a BarrierTaskContext, use get instead"""
    +        pass
    --- End diff --
    
    I would throw an exception BTW if this method should rather be banned


---

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

Reply via email to