spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunitha Kambhampati (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-18121) Unable to query global temp views when hive support is enabled.
Date Wed, 26 Oct 2016 20:30:58 GMT
Sunitha Kambhampati created SPARK-18121:
-------------------------------------------

             Summary:  Unable to query global temp views when hive support is enabled. 
                 Key: SPARK-18121
                 URL: https://issues.apache.org/jira/browse/SPARK-18121
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.1.0
            Reporter: Sunitha Kambhampati


Querying on a global temp view throws Table or view not found exception when Hive support
is enabled. 

Testcase to reproduce the problem: 
The test needs to run when hive support is enabled.  

  test("query global temp view") {
    val df = Seq(1).toDF("i1")
    df.createGlobalTempView("tbl1")
    checkAnswer(spark.sql("select * from global_temp.tbl1"), Row(1))
    spark.sql("drop view global_temp.tbl1")
  }

Cause:
HiveSessionCatalog.lookupRelation does not check for the global temp views. 




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message