Repository: spark Updated Branches: refs/heads/master 5ff75c748 -> 566f70f21
Squishing a typo bug before it causes real harm in updateNumRows method in RowMatrix Author: Doris Xin <[email protected]> Closes #1125 from dorx/updateNumRows and squashes the following commits: 8564aef [Doris Xin] Squishing a typo bug before it causes real harm Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/566f70f2 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/566f70f2 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/566f70f2 Branch: refs/heads/master Commit: 566f70f2140c1d243fe2368af60ecb390ac8ab3e Parents: 5ff75c7 Author: Doris Xin <[email protected]> Authored: Wed Jun 18 22:19:06 2014 -0700 Committer: Xiangrui Meng <[email protected]> Committed: Wed Jun 18 22:19:06 2014 -0700 ---------------------------------------------------------------------- .../org/apache/spark/mllib/linalg/distributed/RowMatrix.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/566f70f2/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala ---------------------------------------------------------------------- diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala index 00d0b18..1a0073c 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala @@ -419,7 +419,7 @@ class RowMatrix( /** Updates or verifies the number of rows. */ private def updateNumRows(m: Long) { if (nRows <= 0) { - nRows == m + nRows = m } else { require(nRows == m, s"The number of rows $m is different from what specified or previously computed: ${nRows}.")
