HyukjinKwon commented on code in PR #47281:
URL: https://github.com/apache/spark/pull/47281#discussion_r1673664698


##########
sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala:
##########
@@ -279,6 +281,27 @@ class SparkSession private(
       initialSessionOptions)
   }
 
+  /**
+   * Clone JobArtifact set info from parent session while call cloneSession 
api.
+   *  
+   * @since 3.5.1 
+   */     
+  private[sql] def cloneJobArtifactSet(parentSessionId: String,
+                                       childSessionId: String): Unit = {
+      sparkContext.addedJars.get(parentSessionId).map{ jars =>

Review Comment:
   ```suggestion
       sparkContext.addedJars.get(parentSessionId).foreach { jars =>
   ```



##########
sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala:
##########
@@ -279,6 +281,27 @@ class SparkSession private(
       initialSessionOptions)
   }
 
+  /**
+   * Clone JobArtifact set info from parent session while call cloneSession 
api.
+   *  
+   * @since 3.5.1 
+   */     
+  private[sql] def cloneJobArtifactSet(parentSessionId: String,
+                                       childSessionId: String): Unit = {
+      sparkContext.addedJars.get(parentSessionId).map{ jars =>
+      val newJars = new ConcurrentHashMap[String, Long]().asScala ++= jars
+      sparkContext.addedJars.put(childSessionId, newJars)
+    }
+    sparkContext.addedFiles.get(parentSessionId).map{ files =>

Review Comment:
   ```suggestion
       sparkContext.addedFiles.get(parentSessionId).foreach { files =>
   ```



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