vicennial commented on code in PR #40675:
URL: https://github.com/apache/spark/pull/40675#discussion_r1159374961


##########
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/SparkSession.scala:
##########
@@ -488,6 +488,14 @@ class SparkSession private[sql] (
   @scala.annotation.varargs
   def addArtifacts(uri: URI*): Unit = client.addArtifacts(uri)
 
+  /**
+   * Register a [[ClassFinder]] for dynamically generated classes.
+   *
+   * @since 3.4.0
+   */
+  @Experimental

Review Comment:
   > There is part of me that thinks we should be doing this as part of 
building the session, instead of adding it while running.
   
   I tried that initially but the `repl.sess` that we pass over in 
`spark.registerClassFinder(new AmmoniteClassFinder(repl.sess))` is only 
available once the REPL is instantiated
   



-- 
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]

Reply via email to