GitHub user ueshin opened a pull request:
https://github.com/apache/spark/pull/20994
[SPARK-21898][ML][FOLLOWUP] Fix Scala 2.12 build.
## What changes were proposed in this pull request?
This is a follow-up pr of #19108 which broke Scala 2.12 build.
```
[error]
/Users/ueshin/workspace/apache-spark/spark/mllib/src/main/scala/org/apache/spark/ml/stat/KolmogorovSmirnovTest.scala:86:
overloaded method value test with alternatives:
[error] (dataset: org.apache.spark.sql.DataFrame,sampleCol: String,cdf:
org.apache.spark.api.java.function.Function[java.lang.Double,java.lang.Double])org.apache.spark.sql.DataFrame
[error] (dataset: org.apache.spark.sql.DataFrame,sampleCol: String,cdf:
scala.Double => scala.Double)org.apache.spark.sql.DataFrame
[error] cannot be applied to (org.apache.spark.sql.DataFrame, String,
scala.Double => java.lang.Double)
[error] test(dataset, sampleCol, (x: Double) => cdf.call(x))
[error] ^
[error] one error found
```
## How was this patch tested?
Existing tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ueshin/apache-spark
issues/SPARK-21898/fix_scala-2.12
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20994.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20994
commit 6957f38010e5edbec26128bd9c28a6120600bd77
Author: Takuya UESHIN
Date: 2018-04-06T07:28:32Z
Fix Scala 2.12 build.
---
-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org