You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/10/26 20:39:58 UTC

[jira] [Assigned] (SPARK-18121) Unable to query global temp views when hive support is enabled.

     [ https://issues.apache.org/jira/browse/SPARK-18121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Apache Spark reassigned SPARK-18121:
------------------------------------

    Assignee: Apache Spark

>  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
>            Assignee: Apache Spark
>
> 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.  
> {code}
>   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")
>   }
> {code}
> 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