xupefei commented on code in PR #47815:
URL: https://github.com/apache/spark/pull/47815#discussion_r1731031119


##########
core/src/main/scala/org/apache/spark/SparkContext.scala:
##########
@@ -825,6 +826,11 @@ class SparkContext(config: SparkConf) extends Logging {
   def getLocalProperty(key: String): String =
     Option(localProperties.get).map(_.getProperty(key)).orNull
 
+  /** Set the UUID of the Spark session that starts the current job. */
+  def setSparkSessionUUID(uuid: String): Unit = {
+    setLocalProperty(SparkContext.SPARK_SESSION_UUID, uuid)

Review Comment:
   How about removing this API and using `setLocalProperty` instead?
   Also the `getSparkSessionUUID` API in ActiveJob will be removed. From 
Session we'll directly inspect the properties.



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