You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by li...@apache.org on 2016/04/01 11:03:00 UTC
spark git commit: [SPARK-14295][MLLIB][HOTFIX] Fixes Scala 2.10
compilation failure
Repository: spark
Updated Branches:
refs/heads/master 22249afb4 -> 3715ecdf4
[SPARK-14295][MLLIB][HOTFIX] Fixes Scala 2.10 compilation failure
## What changes were proposed in this pull request?
Fixes a compilation failure introduced in PR #12088 under Scala 2.10.
## How was this patch tested?
Compilation.
Author: Cheng Lian <li...@databricks.com>
Closes #12107 from liancheng/spark-14295-hotfix.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/3715ecdf
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/3715ecdf
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/3715ecdf
Branch: refs/heads/master
Commit: 3715ecdf417b47423ff07145a5623d8d817c45ef
Parents: 22249af
Author: Cheng Lian <li...@databricks.com>
Authored: Fri Apr 1 17:02:48 2016 +0800
Committer: Cheng Lian <li...@databricks.com>
Committed: Fri Apr 1 17:02:48 2016 +0800
----------------------------------------------------------------------
mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/3715ecdf/mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala b/mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala
index 4b9d779..774170f 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala
@@ -120,7 +120,7 @@ object MLUtils {
i += 1
}
- (label, indices, values)
+ (label, indices.toArray, values.toArray)
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org