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 <l...@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 <l...@databricks.com> Authored: Fri Apr 1 17:02:48 2016 +0800 Committer: Cheng Lian <l...@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-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org