HyukjinKwon commented on code in PR #40368: URL: https://github.com/apache/spark/pull/40368#discussion_r1135235915
########## core/src/main/scala/org/apache/spark/SparkContext.scala: ########## @@ -386,6 +387,18 @@ class SparkContext(config: SparkConf) extends Logging { Utils.setLogLevel(Level.toLevel(upperCased)) } + // Local storage for transferred artifacts through Spark Connect. + private val _sparkConnectArtifactDirectory: File = Utils.createTempDir("artifacts") + + /** + * :: Experimental :: + * Returns the directory that stores artifacts transferred through Spark Connect. + * + * @since 3.4.0 + */ + @Experimental + def sparkConnectArtifactDirectory: File = _sparkConnectArtifactDirectory Review Comment: maybe .. ```suggestion lazy val sparkConnectArtifactDirectory: File = Utils.createTempDir("artifacts") ``` -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org