We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49b1c5b commit a28fef5Copy full SHA for a28fef5
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
@@ -300,7 +300,9 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
300
// Spark SQL Hive support uses a single `SessionState` for all Hive operations and breaks
301
// session isolation under multi-user scenarios (i.e. HiveThriftServer2).
302
// TODO Fix session isolation
303
- SessionState.start(sessionState)
+ if (SessionState.get() != sessionState) {
304
+ SessionState.start(sessionState)
305
+ }
306
307
proc match {
308
case driver: Driver =>
0 commit comments