turboFei commented on code in PR #6235:
URL: https://github.com/apache/kyuubi/pull/6235#discussion_r1547105582
##########
externals/kyuubi-spark-sql-engine/src/main/scala-2.12/org/apache/kyuubi/engine/spark/repl/KyuubiSparkILoop.scala:
##########
@@ -97,6 +86,23 @@ private[spark] case class KyuubiSparkILoop private (
}
}
+ private def getAllJars(currentClassLoader: ClassLoader): Array[URL] = {
+ var classLoader: ClassLoader = currentClassLoader
+ var allJars = Array.empty[URL]
+ while (classLoader != null) {
+ classLoader match {
+ case loader: MutableURLClassLoader =>
+ allJars = loader.getURLs.filter { u =>
+ u.getProtocol == "file" && new File(u.getPath).isFile
Review Comment:
will add comments after the UT finished.
```
// TODO: handle SPARK-47475 since Spark 4.0.0 in the future
```
--
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]