GitHub user ueshin opened a pull request:

    [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.
 overloaded method value test with alternatives:
    [error]   (dataset: org.apache.spark.sql.DataFrame,sampleCol: String,cdf:[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) =>
    [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 

Alternatively you can review and apply these changes as the patch at:

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 <ueshin@...>
Date:   2018-04-06T07:28:32Z

    Fix Scala 2.12 build.



To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to