diff options
author | Reynold Xin <rxin@cs.berkeley.edu> | 2013-05-10 13:54:03 -0700 |
---|---|---|
committer | Reynold Xin <rxin@cs.berkeley.edu> | 2013-05-10 13:54:03 -0700 |
commit | 63e1999f6057bd397b49efe432ad74c0015a101b (patch) | |
tree | e419384ef67981c20e527101b69ac14000becebd /core | |
parent | 012c9e5ab072239e07202abe4775b434be6e32b9 (diff) | |
parent | 6e6b3e0d7eadab97d45e975452c7e0c18246686e (diff) | |
download | spark-63e1999f6057bd397b49efe432ad74c0015a101b.tar.gz spark-63e1999f6057bd397b49efe432ad74c0015a101b.tar.bz2 spark-63e1999f6057bd397b49efe432ad74c0015a101b.zip |
Merge pull request #606 from markhamstra/foreachPartition_fix
Actually use the cleaned closure in foreachPartition
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/scala/spark/RDD.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/spark/RDD.scala b/core/src/main/scala/spark/RDD.scala index fd14ef17f1..dde131696f 100644 --- a/core/src/main/scala/spark/RDD.scala +++ b/core/src/main/scala/spark/RDD.scala @@ -489,7 +489,7 @@ abstract class RDD[T: ClassManifest]( */ def foreachPartition(f: Iterator[T] => Unit) { val cleanF = sc.clean(f) - sc.runJob(this, (iter: Iterator[T]) => f(iter)) + sc.runJob(this, (iter: Iterator[T]) => cleanF(iter)) } /** |