Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20377#discussion_r164050130
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala
 ---
    @@ -251,10 +251,8 @@ private[hive] class IsolatedClientLoader(
     
       /** The isolated client interface to Hive. */
       private[hive] def createClient(): HiveClient = synchronized {
    -    val warehouseDir = 
Option(hadoopConf.get(ConfVars.METASTOREWAREHOUSE.varname))
         if (!isolationOn) {
    -      return new HiveClientImpl(version, warehouseDir, sparkConf, 
hadoopConf, config,
    -        baseClassLoader, this)
    +      return new HiveClientImpl(version, sparkConf, hadoopConf, config, 
baseClassLoader, this)
    --- End diff --
    
    @HyukjinKwon 's proposal looks good with this type alias and comments, so 
people can know what happened here. But due to personal taste, I prefer the 
wrapper solution as it looks cleaner to me and don't need to build a map or a 
O(n) lookup :-/


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to