diff options
author | Cheng Lian <lian@databricks.com> | 2016-04-01 17:02:48 +0800 |
---|---|---|
committer | Cheng Lian <lian@databricks.com> | 2016-04-01 17:02:48 +0800 |
commit | 3715ecdf417b47423ff07145a5623d8d817c45ef (patch) | |
tree | 872cc3e8ba3dfed21bc185eba421969ec9ef34df /mllib/src/main | |
parent | 22249afb4a932a82ff1f7a3befea9fda5a60a3f4 (diff) | |
download | spark-3715ecdf417b47423ff07145a5623d8d817c45ef.tar.gz spark-3715ecdf417b47423ff07145a5623d8d817c45ef.tar.bz2 spark-3715ecdf417b47423ff07145a5623d8d817c45ef.zip |
[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 <lian@databricks.com>
Closes #12107 from liancheng/spark-14295-hotfix.
Diffstat (limited to 'mllib/src/main')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 4b9d77949f..774170ff40 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) } /** |