[
https://issues.apache.org/jira/browse/SPARK-18121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-18121.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
Issue resolved by pull request 15649
[https://github.com/apache/spark/pull/15649]
> 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
> Fix For: 2.1.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]