Skip to content

Commit 0f93b91

Browse files
WeichenXu123jkbradley
authored andcommitted
[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 <[email protected]> Closes apache#21051 from WeichenXu123/fix_build212.
1 parent 0b19122 commit 0f93b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/ml/stat/KolmogorovSmirnovTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ object KolmogorovSmirnovTest {
8585
dataset: Dataset[_],
8686
sampleCol: String,
8787
cdf: Function[java.lang.Double, java.lang.Double]): DataFrame = {
88-
test(dataset, sampleCol, (x: Double) => cdf.call(x))
88+
test(dataset, sampleCol, (x: Double) => cdf.call(x).toDouble)
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)