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

    https://github.com/apache/spark/pull/20218#discussion_r160838671
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreCatalogSuite.scala
 ---
    @@ -148,6 +148,7 @@ class DataSourceWithHiveMetastoreCatalogSuite
     
       override def beforeAll(): Unit = {
         super.beforeAll()
    +    sparkSession.sessionState.catalog.reset()
    --- End diff --
    
    This is for changing our own current database. The previous fix is to 
change the underlying Hive client's current database. I think this can fix the 
issue. 
    
    If we do not reset the current database, the other test cases might still 
hit the same issue. Thus, this PR tries to do it


---

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

Reply via email to