xuanyuanking commented on a change in pull request #23470: 
[SPARK-26549][PySpark] Fix for python worker reuse take no effect for 
parallelize lazy iterable range
URL: https://github.com/apache/spark/pull/23470#discussion_r246248310
 
 

 ##########
 File path: python/pyspark/context.py
 ##########
 @@ -493,6 +493,10 @@ def getStart(split):
                 return start0 + int((split * size / numSlices)) * step
 
             def f(split, iterator):
+                # it's an empty iterator here but we need this line for 
triggering the logic of
+                # checking END_OF_DATA_SECTION during load iterator in 
runtime, thus make sure
 
 Review comment:
   Copy that, done in 4868e82.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to