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

    https://github.com/apache/spark/pull/15649#discussion_r85377599
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala 
---
    @@ -65,6 +65,20 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils 
with TestHiveSingleton {
       import hiveContext._
       import spark.implicits._
     
    +  test("query global temp view") {
    +    val df = Seq(1).toDF("i1")
    +    df.createGlobalTempView("tbl1")
    +    checkAnswer(spark.sql("select * from global_temp.tbl1"), Row(1))
    --- End diff --
    
    Thanks @cloud-fan.  I have changed the test to get the global_temp db from 
the conf.   spark.conf.get("spark.sql.globalTempDatabase”)
    
    It looks like there are two ways to get it: 
    - One is using the conf
    - Accessing the spark.sharedState.globalTempViewManager.database
    
    In the test, I am now getting it from the conf.   Please see if this is ok. 
 Thanks. 


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