Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2887#discussion_r19462828
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala ---
    @@ -288,8 +296,15 @@ class HiveContext(sc: SparkContext) extends 
SQLContext(sc) {
           val cmd_1: String = cmd_trimmed.substring(tokens(0).length()).trim()
           val proc: CommandProcessor = 
HiveShim.getCommandProcessor(Array(tokens(0)), hiveconf)
     
    +      // Makes sure the session represented by the `sessionState` field is 
activated. This implies
    +      // Spark SQL Hive support uses a single `SessionState` for all Hive 
operations and breaks
    +      // session isolation under multi-user scenarios (i.e. 
HiveThriftServer2).
    +      // TODO Fix session isolation
    +      SessionState.start(sessionState)
    +
           proc match {
             case driver: Driver =>
    +          driver.init()
    --- End diff --
    
    @zhzhan This line was removed in #2241. Is there any reason behind?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to