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

    https://github.com/apache/spark/pull/22962#discussion_r232528333
  
    --- Diff: python/pyspark/taskcontext.py ---
    @@ -144,10 +144,19 @@ def __init__(self):
             """Construct a BarrierTaskContext, use get instead"""
             pass
     
    +    def __new__(cls):
    --- End diff --
    
    Yep, do this in `_getOrCreate` has same effect, this is an over consider of 
https://github.com/apache/spark/blob/aec0af4a952df2957e21d39d1e0546a36ab7ab86/python/pyspark/taskcontext.py#L44-L45
    Deleted in 02555b8.


---

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

Reply via email to