sadhen commented on pull request #32332:
URL: https://github.com/apache/spark/pull/32332#issuecomment-829112079


   The refactored https://github.com/apache/spark/pull/32320 using `inner_map` 
to decrease the complexity of RDD and python collection.
   
   The only weird part is:
   ```
               # make sure data could consumed multiple times
               if not isinstance(data, RDD) and not isinstance(data, list):
                   data = list(data)
   ```
   Because some data can only be iterated once.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to