-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-14650][REPL][BUILD] Compile Spark REPL for Scala 2.12 #19612
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
… in ILoop; remove direct dependence on older jline
| <artifactId>antlr4-runtime</artifactId> | ||
| <version>${antlr4.version}</version> | ||
| </dependency> | ||
| <dependency> |
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.
This caused a problem in Scala 2.12, but, doesn't seem like we have any direct dependency on jline anyway
| processLine("import spark.implicits._") | ||
| processLine("import spark.sql") | ||
| processLine("import org.apache.spark.sql.functions._") | ||
| command("import org.apache.spark.SparkContext._") |
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.
This was the real change. Also part of the reason Spark didn't work in 2.11.11. This avoids waiting on ILoop.globalFuture which isn't initialized when processLine gets called anymore
|
(Note this is a follow-up to #19307) |
|
Test build #83227 has finished for PR 19612 at commit
|
|
Test build #83228 has started for PR 19612 at commit |
|
Test build #3969 has finished for PR 19612 at commit
|
|
Merged to master |
## What changes were proposed in this pull request? Spark REPL changes for Scala 2.12.4: use command(), not processLine() in ILoop; remove direct dependence on older jline. Not sure whether this became needed in 2.12.4 or just missed this before. This makes spark-shell work in 2.12. ## How was this patch tested? Existing tests; manual run of spark-shell in 2.11, 2.12 builds Author: Sean Owen <[email protected]> Closes apache#19612 from srowen/SPARK-14650.2.
What changes were proposed in this pull request?
Spark REPL changes for Scala 2.12.4: use command(), not processLine() in ILoop; remove direct dependence on older jline. Not sure whether this became needed in 2.12.4 or just missed this before. This makes spark-shell work in 2.12.
How was this patch tested?
Existing tests; manual run of spark-shell in 2.11, 2.12 builds