[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:
parent
0b19122d43
commit
0f93b91a71
|
@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue