[SPARK-28939][SQL][FOLLOWUP] Fix JDK11 compilation due to ambiguous reference#25738
[SPARK-28939][SQL][FOLLOWUP] Fix JDK11 compilation due to ambiguous reference#25738dongjoon-hyun wants to merge 1 commit intoapache:masterfrom dongjoon-hyun:SPARK-28939
Conversation
…eference to putAll
|
cc @mgaido91 , @cloud-fan , @hvanhovell , @tgravescs , @viirya , @srowen . |
|
Test build #110377 has finished for PR 25738 at commit
|
|
Thank you for review and approval, @srowen , @viirya , @HyukjinKwon , @maropu , @cloud-fan . |
| private lazy val sqlConfExecutorSide = { | ||
| val props = new Properties() | ||
| props.putAll(sqlConfigs.asJava) | ||
| sqlConfigs.foreach { case (k, v) => props.setProperty(k, v) } |
There was a problem hiding this comment.
I know it is a bit late, but why are we not setting the configurations directly?
There was a problem hiding this comment.
the reason why I created the properties object was to have it in a synchronized block, but since we are in a lazy val it is probably useless...
There was a problem hiding this comment.
@mgaido91 can you send a followup PR to clean it up? Now we can't set the SQL confs in a batch and I don't think it's useful to have this Properties.
There was a problem hiding this comment.
@hvanhovell and @mgaido91 . Feel free to make a follow-up if we need. Also, please apply that in the backporting PR, #25734, before merging for consistency.
There was a problem hiding this comment.
sure @cloud-fan , I am doing that. Thanks for the remainder @dongjoon-hyun, I'll update the backport PR once this is stable. Thanks.
…eference ### What changes were proposed in this pull request? This PR aims to recover the JDK11 compilation with a workaround. For now, the master branch is broken like the following due to a [Scala bug](scala/bug#10418) which is fixed in `2.13.0-RC2`. ``` [ERROR] [Error] /spark/sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecutionRDD.scala:42: ambiguous reference to overloaded definition, both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit match argument types (java.util.Map[String,String]) ``` - https://github.com/apache/spark/actions (JDK11 build monitoring) ### Why are the changes needed? This workaround recovers JDK11 compilation. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Manual build with JDK11 because this is JDK11 compilation fix. - Jenkins builds with JDK8 and tests with JDK11. - GitHub action will verify this after merging. Closes apache#25738 from dongjoon-hyun/SPARK-28939. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
What changes were proposed in this pull request?
This PR aims to recover the JDK11 compilation with a workaround.
For now, the master branch is broken like the following due to a Scala bug which is fixed in
2.13.0-RC2.Why are the changes needed?
This workaround recovers JDK11 compilation.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual build with JDK11 because this is JDK11 compilation fix.