Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16826#discussion_r104606859
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala 
---
    @@ -278,6 +278,8 @@ private[hive] class HiveClientImpl(
         state.getConf.setClassLoader(clientLoader.classLoader)
         // Set the thread local metastore client to the client associated with 
this HiveClientImpl.
         Hive.set(client)
    +    // Replace conf in the thread local Hive with current conf
    +    Hive.get(conf)
    --- End diff --
    
    Because of reusing`IsolatedClientLoader.cachedHive`. Without this line, it 
may use an out-of-date HiveConf. The failed test is 
`HiveSparkSubmitSuite.test("SPARK-18360: default table path of tables in 
default database should depend on the " +
        "location of default database")`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to