You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sunitha Kambhampati (JIRA)" <ji...@apache.org> on 2016/10/26 20:33:58 UTC
[jira] [Updated] (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 ]
Sunitha Kambhampati updated SPARK-18121:
----------------------------------------
Description:
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.
was:
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.
> 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.
> {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