turboFei commented on code in PR #6235:
URL: https://github.com/apache/kyuubi/pull/6235#discussion_r1547050139
##########
externals/kyuubi-spark-sql-engine/src/main/scala-2.12/org/apache/kyuubi/engine/spark/repl/KyuubiSparkILoop.scala:
##########
@@ -60,8 +60,11 @@ private[spark] case class KyuubiSparkILoop private (
val allJars = loader.getURLs.filter { u =>
val file = new File(u.getPath)
u.getProtocol == "file" && file.isFile &&
- file.getName.contains("scala-lang_scala-reflect")
+ // Some bad spark packages depend on the wrong version of
scala-reflect. Blacklist it.
+ !file.getName.contains("scala-lang_scala-reflect")
}
+ info(s"Adding jars to Scala interpreter's class path: " +
+ allJars.mkString(File.pathSeparator))
Review Comment:
```
24/04/01 19:01:30 INFO KyuubiSparkILoop: Adding jars to Scala interpreter's
class path:
file:/Users/fwang12/todo/kyuubi/externals/kyuubi-spark-sql-engine/target/kyuubi-spark-sql-engine_2.12-1.10.0-SNAPSHOT.jar:file:/var/folders/pr/9x9rt3j974zfn7p4f5dpf8m80000gq/T/kyuubi-32215772-8004-43c1-a070-1cb0efd79bf0/test-function-02417951-6b76-4cf7-bb4a-5fc20372c034.jar
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]