GitHub user dbtsai opened a pull request:

    https://github.com/apache/spark/pull/22229

    [MINOR] Fix Scala 2.12 build

    ## What changes were proposed in this pull request?
    
    
[SPARK-25095](https://github.com/apache/spark/commit/ad45299d047c10472fd3a86103930fe7c54a4cf1)
 introduced `ambiguous reference to overloaded definition` 
    
    ```
    [error] 
/Users/d_tsai/dev/apache-spark/core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala:242:
 ambiguous reference to overloaded definition,
    [error] both method addTaskCompletionListener in class TaskContext of type 
[U](f: org.apache.spark.TaskContext => U)org.apache.spark.TaskContext
    [error] and  method addTaskCompletionListener in class TaskContext of type 
(listener: 
org.apache.spark.util.TaskCompletionListener)org.apache.spark.TaskContext
    [error] match argument types (org.apache.spark.TaskContext => Unit)
    [error]           context.addTaskCompletionListener(_ => server.close())
    [error]                   ^
    [error] one error found
    [error] Compile failed at Aug 24, 2018 1:56:06 PM [31.582s]
    ```
    which fails the Scala 2.12 branch build.
    
    ## How was this patch tested?
    
    Existing tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dbtsai/spark fix-2.12-build

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

    https://github.com/apache/spark/pull/22229.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 #22229
    
----
commit 20a2aa21813cbbb131110e00d2e5c1426d6dae78
Author: DB Tsai <d_tsai@...>
Date:   2018-08-24T21:22:54Z

    fix 2.12 build

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to