[SPARK-23751][FOLLOW-UP] fix build for scala-2.12

## What changes were proposed in this pull request?

fix build for scala-2.12

## How was this patch tested?

Manual.

Author: WeichenXu <weichen.xu@databricks.com>

Closes #21051 from WeichenXu123/fix_build212.
This commit is contained in:
WeichenXu 2018-04-12 15:47:42 -06:00 committed by Joseph K. Bradley
parent 0b19122d43
commit 0f93b91a71

View file

@ -85,7 +85,7 @@ object KolmogorovSmirnovTest {
dataset: Dataset[_],
sampleCol: String,
cdf: Function[java.lang.Double, java.lang.Double]): DataFrame = {
test(dataset, sampleCol, (x: Double) => cdf.call(x))
test(dataset, sampleCol, (x: Double) => cdf.call(x).toDouble)
}
/**