Skip to content

Commit

Permalink
need collect
Browse files Browse the repository at this point in the history
need collect

need collect
  • Loading branch information
zhengruifeng committed Apr 17, 2020
1 parent 2b10eb2 commit 0afc845
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private[spark] abstract class DistanceMeasure extends Serializable {
} else Iterator.empty
}
}.filterNot(_._2 == 0)
}.foreach { case (i, j, s) =>
}.collect.foreach { case (i, j, s) =>
val index = indexUpperTriangular(k, i, j)
packedValues(index) = s
if (s < diagValues(i)) diagValues(i) = s
Expand Down

0 comments on commit 0afc845

Please sign in to comment.