cloud-fan commented on code in PR #53777:
URL: https://github.com/apache/spark/pull/53777#discussion_r2689449879
##########
sql/core/src/main/scala/org/apache/spark/sql/classic/SparkSession.scala:
##########
@@ -169,6 +175,13 @@ class SparkSession private(
| Session-related state |
* ----------------------- */
+ /**
+ * Track whether sessionState is currently being initialized. Used to
prevent recursive calls
+ * to sessionState.conf during initialization (e.g., from SQLConf.get).
+ */
+ @transient
+ private var sessionStateInitializing: Boolean = false
Review Comment:
why the default value is false? What happens if the session state has not
started to initialize but `SQLConf.get` is called somwhere?
##########
sql/core/src/main/scala/org/apache/spark/sql/classic/SparkSession.scala:
##########
@@ -169,6 +175,13 @@ class SparkSession private(
| Session-related state |
* ----------------------- */
+ /**
+ * Track whether sessionState is currently being initialized. Used to
prevent recursive calls
+ * to sessionState.conf during initialization (e.g., from SQLConf.get).
+ */
+ @transient
+ private var sessionStateInitializing: Boolean = false
Review Comment:
why the default value is false? What happens if the session state has not
started to initialize but `SQLConf.get` is called somewhere?
--
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]