spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject git commit: Squishing a typo bug before it causes real harm
Date Thu, 19 Jun 2014 05:19:27 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.0 0e39c884c -> d0dde920d


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

(cherry picked from commit 566f70f2140c1d243fe2368af60ecb390ac8ab3e)
Signed-off-by: Xiangrui Meng <meng@databricks.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d0dde920
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d0dde920
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d0dde920

Branch: refs/heads/branch-1.0
Commit: d0dde920d47f3da77bcf1980df85fd1c47ff17f6
Parents: 0e39c88
Author: Doris Xin <doris.s.xin@gmail.com>
Authored: Wed Jun 18 22:19:06 2014 -0700
Committer: Xiangrui Meng <meng@databricks.com>
Committed: Wed Jun 18 22:19:21 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/d0dde920/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 07dfadf..a2c8fb3 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 verfires 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}.")


Mime
View raw message