AngersZhuuuu commented on a change in pull request #29881:
URL: https://github.com/apache/spark/pull/29881#discussion_r505138988
##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala
##########
@@ -396,23 +440,50 @@ private[spark] object HiveUtils extends Logging {
config = configurations,
barrierPrefixes = hiveMetastoreBarrierPrefixes,
sharedPrefixes = hiveMetastoreSharedPrefixes)
+ } else if (hiveMetastoreJars == "path") {
+ // Convert to files and expand any directories.
+ val jars =
+ HiveUtils.hiveMetastoreJarsPath(sqlConf)
+ .flatMap {
+ case path if Utils.isWindows =>
+ addLocalHiveJars(new File(path))
+ case path =>
+ val uri = new Path(path).toUri
+ uri.getScheme match {
Review comment:
how about current change? Make the logic more simpler.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]