Skip to content
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

Upgrade Scala to 2.12.15 #1380

Closed
wants to merge 1 commit into from
Closed

Conversation

wangyum
Copy link
Contributor

@wangyum wangyum commented Sep 16, 2022

Description

Upgrade Scala to 2.12.15 to fix java.lang.IllegalArgumentException: too many arguments if running on JDK 17:

[info] Caused by: java.lang.reflect.InvocationTargetException
[info] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[info] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[info] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[info] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[info] 	at java.base/java.lang.invoke.SerializedLambda.readResolve(SerializedLambda.java:278)
[info] 	... 71 more
[info] Caused by: java.lang.IllegalArgumentException: too many arguments
[info] 	at java.base/java.lang.invoke.LambdaMetafactory.altMetafactory(LambdaMetafactory.java:511)
[info] 	at scala.runtime.LambdaDeserializer$.makeCallSite$1(LambdaDeserializer.scala:105)
[info] 	at scala.runtime.LambdaDeserializer$.deserializeLambda(LambdaDeserializer.scala:114)
[info] 	at scala.runtime.LambdaDeserialize.deserializeLambda(LambdaDeserialize.java:38)
[info] 	at org.apache.spark.sql.execution.LocalTableScanExec.$deserializeLambda$(LocalTableScanExec.scala)
[info] 	... 76 more

How was this patch tested?

Existing test.

Does this PR introduce any user-facing changes?

No.

@wangyum
Copy link
Contributor Author

wangyum commented Sep 16, 2022

cc @zsxwing

Copy link
Member

@zsxwing zsxwing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 2.12.15 is used by Spark 3.3.0 already: https://github.com/apache/spark/blob/v3.3.0/pom.xml#L160

@zsxwing zsxwing closed this in 857a955 Sep 21, 2022
@wangyum wangyum deleted the Scala-2.12.15 branch September 21, 2022 23:24
@vkorukanti vkorukanti added this to the 2.2.0 milestone Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants