You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2019/12/11 15:44:00 UTC

[jira] [Created] (SPARK-30223) queries in thrift server may read wrong SQL configs

Wenchen Fan created SPARK-30223:
-----------------------------------

             Summary: queries in thrift server may read wrong SQL configs
                 Key: SPARK-30223
                 URL: https://issues.apache.org/jira/browse/SPARK-30223
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Wenchen Fan


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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org