wangyum commented on a change in pull request #25775:
[WIP][SPARK-29015][SQL][test-hadoop3.2] fix bug for jdk11, can't use 'add jar'
jar's class as create table serde
URL: https://github.com/apache/spark/pull/25775#discussion_r325011893
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
##########
@@ -190,6 +190,7 @@ private[hive] class HiveClientImpl(
if (clientLoader.cachedHive != null) {
Hive.set(clientLoader.cachedHive.asInstanceOf[Hive])
}
+ state.getConf.setClassLoader(initClassLoader)
Review comment:
Could we just set the `ClassLoader` for Hive 2.3?
```scala
if (HiveUtils.isHive23) {
state.getConf.setClassLoader(clientLoader.classLoader)
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]