[GitHub] spark pull request #22229: [MINOR] Fix Scala 2.12 build

2018-08-24 Thread asfgit
Github user asfgit closed the pull request at:

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


---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark pull request #22229: [MINOR] Fix Scala 2.12 build

2018-08-24 Thread dbtsai
GitHub user dbtsai opened a pull request:

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

[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/9.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 #9


commit 20a2aa21813cbbb131110e00d2e5c1426d6dae78
Author: DB Tsai 
Date:   2018-08-24T21:22:54Z

fix 2.12 build




---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org