spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allen Chang <>
Subject RDD values and defensive copying
Date Fri, 23 May 2014 21:55:53 GMT
Hi all,

I had a question: if I have an RDD containing mutable values, and I run a
function over the RDD which mucks with the mutable values, what happens?
What happens in the case of a cogroup? e.g.:


Will this result in undefined behavior? Is it a best practice then to make
sure functionThatModifiesValues() performs a defensive copy if necessary?


View this message in context:
Sent from the Apache Spark User List mailing list archive at

View raw message