Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0
-
None
-
None
Description
The Spark thrift server creates many SparkSessions to serve requests, and the thrift server serves requests using a single thread. One thread can only have one active SparkSession, so SQLCong.get can't get the proper conf from the session that runs the query.
Whenever we issue an action on a SparkSession, we should set this session as active session, e.g. `SparkSession.sql`.
Attachments
Issue Links
- duplicates
-
SPARK-30798 Scope Session.active in QueryExecution
- Resolved
- relates to
-
SPARK-38328 SQLConf.get flaky causes NON-default spark session settings being lost
- Open