-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-27250][test-maven][BUILD] Scala 2.11 maven compile should target Java 1.8 #24184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
## What changes were proposed in this pull request? - Support N-part identifier in SQL - N-part identifier extractor in Analyzer ## How was this patch tested? - A new unit test suite ResolveMultipartRelationSuite - CatalogLoadingSuite rblue cloud-fan mccheah Closes #23848 from jzhuge/SPARK-26946. Authored-by: John Zhuge <jzhuge@apache.org> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
ok to test |
add to whitelist |
Test build #103836 has finished for PR 24184 at commit
|
build failure: |
shall we just use |
Hate to hard-code it but might have to without other choice.
I am not fluent in SBT, is it normal for it to set `java.version` to
1.8.0_191?
…On Fri, Mar 22, 2019 at 2:23 PM Wenchen Fan ***@***.***> wrote:
shall we just use jvm-1.8?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24184 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABy-pEgQIElkMlxKUYK9DHXJJvBmijVpks5vZUnfgaJpZM4cEXCp>
.
--
John Zhuge
|
"java.version" is a system property set by the JVM itself. |
So it is not reading property "java.version" from root pom, but what about
this line in SparkBuild.java:
javaVersion :=
SbtPomKeys.effectivePom.value.getProperties.get("java.version").asInstanceOf[String],
Shouldn't SbtPomKeys.effectivePom read the pom.xml from project base
directory?
…On Fri, Mar 22, 2019 at 4:50 PM Marcelo Vanzin ***@***.***> wrote:
"java.version" is a system property set by the JVM itself.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24184 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABy-pO_fmMNafoTJEdtnTGIX-u8O4EARks5vZWxGgaJpZM4cEXCp>
.
--
John Zhuge
|
I have a workaround by adding another Maven property "target.java.version"
specifically for "-target:jvm-${target.java.version}" only. This doesn't
solve the SBT mystery, but at least get us going. What do you guys think?
…On Fri, Mar 22, 2019 at 5:34 PM John Zhuge ***@***.***> wrote:
So it is not reading property "java.version" from root pom, but what about
this line in SparkBuild.java:
javaVersion :=
SbtPomKeys.effectivePom.value.getProperties.get("java.version").asInstanceOf[String],
Shouldn't SbtPomKeys.effectivePom read the pom.xml from project base
directory?
On Fri, Mar 22, 2019 at 4:50 PM Marcelo Vanzin ***@***.***>
wrote:
> "java.version" is a system property set by the JVM itself.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#24184 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/ABy-pO_fmMNafoTJEdtnTGIX-u8O4EARks5vZWxGgaJpZM4cEXCp>
> .
>
--
John Zhuge
--
John Zhuge
|
So, is the issue |
I have observed (I assume) this issue which caused an error in the thirdparty library I worked on but just decided to workaround within the thirdparty project. It would be awesome if root cause is identified and fixed. |
BTW, let's do maven build as well before getting this in since we now observed the difference between SBT and Maven. If we can fix it in both SBT and Maven without identifying root cause (if that's difficult), that's fine to me too. |
This is a change to the Maven build, not SBT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM but need to update and re-run test
Passed maven 2.11/2.12 and sbt 2.11/2.12 builds locally, after reverting SPARK-25196. |
retest this please |
Test build #4656 has started for PR 24184 at commit |
Test build #103842 has finished for PR 24184 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge it fairly soon to get the 2.11 build healthy one last time
Thanks @srowen. FWIW, I understand the SBT mystery a little better. Scale compile options come from maven
Evidence in the generated file
The line @seancxmao Any insight? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM, too.
After 01e6305 , I rebased this PR to the master and was able to build with Scala-2.11
on both maven/sbt cleanly.
Merged to master |
…et Java 1.8 ## What changes were proposed in this pull request? Fix Scala 2.11 maven build issue after merging SPARK-26946. ## How was this patch tested? Maven Scala 2.11 and 2.12 builds with `-Phadoop-provided -Phadoop-2.7 -Pyarn -Phive -Phive-thriftserver`. Closes apache#24184 from jzhuge/SPARK-26946-1. Authored-by: John Zhuge <jzhuge@apache.org> Signed-off-by: Sean Owen <sean.owen@databricks.com>
What changes were proposed in this pull request?
Fix Scala 2.11 maven build issue after merging SPARK-26946.
How was this patch tested?
Maven Scala 2.11 and 2.12 builds with
-Phadoop-provided -Phadoop-2.7 -Pyarn -Phive -Phive-thriftserver
.