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

    https://github.com/apache/spark/pull/2887#discussion_r19488002
  
    --- 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)
    --- End diff --
    
    Ah I see where the problem is: the assembly jar is built with 
`-Phive-0.12.0` [1] while the test is executed with `-Phive` [2], which implies 
`-Phive-0.13.1`.
    
    [1] 
https://github.com/apache/spark/blob/7768a800d4c4c19d76cef1ee40af6900bbac821c/dev/run-tests#L143
    [2] 
https://github.com/apache/spark/blob/7768a800d4c4c19d76cef1ee40af6900bbac821c/dev/run-tests#L170


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

Reply via email to