You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "pin_zhang (JIRA)" <ji...@apache.org> on 2015/08/26 10:18:45 UTC
[jira] [Created] (SPARK-10290) Spark can register temp table and
hive table with the same table name
pin_zhang created SPARK-10290:
---------------------------------
Summary: Spark can register temp table and hive table with the same table name
Key: SPARK-10290
URL: https://issues.apache.org/jira/browse/SPARK-10290
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 1.4.1
Reporter: pin_zhang
Spark sql allow to create hive table and register temp table with the same name
no way to run query on the hive table table with the following code
// register hive table
DataFrame df = hctx_.read().json("test.json");
df.write().mode(SaveMode.Overwrite).saveAsTable("test");
// register temp table
hctx_.registerDataFrameAsTable(hctx_.sql("select id from test"), "test");
--
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