Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/12217#issuecomment-207410404
  
    @jkbradley I see what you mean, but, thinking about it, can this work? the 
reduce function is applied directly to RDD elements, so modifying one of the 
arguments and returning it means you're mutating the elements of the RDD in 
memory, which may have some undefined consequences. For fold, it's fine because 
the left argument is always actually the zero-value object. Right? Or am I not 
thinking about it correctly. It might happen to be fine to use reduce in some 
cases where the RDD values are not used again.


---
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