Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/18501#discussion_r125183278
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
---
@@ -940,7 +948,7 @@ object SparkSession {
}
session = new SparkSession(sparkContext, None, None, extensions)
- options.foreach { case (k, v) =>
session.sessionState.conf.setConfString(k, v) }
+ options.foreach { case (k, v) =>
session.initialSessionOptions.put(k, v) }
--- End diff --
I tried to fix this problem in
https://github.com/apache/spark/pull/18172/files#diff-d91c284798f1c98bf03a31855e26d71cL938
, maybe you can pick it up? Your approach adds a new
concept(`initialSessionOptions`), while `SparkSession` initialization is
already very complex...
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]