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

    https://github.com/apache/spark/pull/8909#discussion_r41423130
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
 ---
    @@ -1133,6 +1133,17 @@ class HiveQuerySuite extends HiveComparisonTest with 
BeforeAndAfter {
         conf.clear()
       }
     
    +  test("current_database with mutiple sessions") {
    +    sql("create database a")
    +    sql("use a")
    +    val s2 = newSession()
    +    s2.sql("create database b")
    +    s2.sql("use b")
    +
    +    assert(sql("select current_database()").first() === Row("a"))
    +    assert(s2.sql("select current_database()").first() === Row("b"))
    --- End diff --
    
    Can we also add a test that tries querying from tables that only exist in 
one database or another to make sure that the catalogs resolution of "current 
database" is working.


---
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