Skip to content

Commit edaf402

Browse files
committed
fix bug of jdk11
1 parent 569ab8a commit edaf402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ private[hive] class HiveClientImpl(
311311
val ret = try f finally {
312312
state.getConf.setClassLoader(originalConfLoader)
313313
Thread.currentThread().setContextClassLoader(original)
314+
SessionState.detachSession()
314315
HiveCatalogMetrics.incrementHiveClientCalls(1)
315316
}
316317
ret

0 commit comments

Comments
 (0)