Skip to content

Commit 3c49d98

Browse files
author
Debasish Das
committed
use coalesce in place of repartition to avoid shuffle
1 parent af70583 commit 3c49d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class IndexedRowMatrix(
276276
value.map { sim =>
277277
MatrixEntry(i, sim._1, sim._2)
278278
}
279-
}.repartition(defaultParallelism)
279+
}.coalesce(defaultParallelism)
280280

281281
blockedBig.unpersist()
282282

0 commit comments

Comments
 (0)