Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/8382#issuecomment-136911023
  
    If we call generator method like `newProject` inside RDD function closure, 
then we will have to serialize the outer class which mix-in 
`CommonOperatorGenerator`, and it's unnecessary. However, if we make 
`CommonOperatorGenerator` an object, then we only need to serialize the 
generator object not the whole outer class.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to