hvanhovell opened a new pull request #29752:
URL: https://github.com/apache/spark/pull/29752


   ### What changes were proposed in this pull request?
   This PR refactors the way we propagate the options from the 
`SparkSession.Builder` to the` SessionState`. This currently done via a mutable 
map inside the SparkSession. These setting settings are then applied **after** 
the Session. This is a bit confusing when you expect something to be set when 
constructing the `SessionState`. This PR passes the options as a constructor 
parameter to the `SessionStateBuilder` and this will set the options when the 
configuration is created.
   
   ### Why are the changes needed?
   It makes it easier to reason about the configurations set in a SessionState 
than before. We recently had an incident where someone was using 
`SparkSessionExtensions` to create a planner rule that relied on a conf to be 
set. While this is in itself probably incorrect usage, it still illustrated 
this somewhat funky behavior.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Existing tests.


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

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