diff options
author | Doris Xin <doris.s.xin@gmail.com> | 2014-06-18 22:19:06 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2014-06-18 22:19:06 -0700 |
commit | 566f70f2140c1d243fe2368af60ecb390ac8ab3e (patch) | |
tree | f3bc931c42c0ef957dd11d1a0f4e6bd10325e08d /mllib/src | |
parent | 5ff75c748a27bcfae71759d0e509218f0c5d0200 (diff) | |
download | spark-566f70f2140c1d243fe2368af60ecb390ac8ab3e.tar.gz spark-566f70f2140c1d243fe2368af60ecb390ac8ab3e.tar.bz2 spark-566f70f2140c1d243fe2368af60ecb390ac8ab3e.zip |
Squishing a typo bug before it causes real harm
in updateNumRows method in RowMatrix
Author: Doris Xin <doris.s.xin@gmail.com>
Closes #1125 from dorx/updateNumRows and squashes the following commits:
8564aef [Doris Xin] Squishing a typo bug before it causes real harm
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 00d0b18c27..1a0073c9d4 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}.") |