[jira] [Assigned] (SPARK-10290) Spark can register temp table and hive table with the same table name

2015-08-30 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-10290:


Assignee: Apache Spark

 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
Assignee: Apache Spark

 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-10290) Spark can register temp table and hive table with the same table name

2015-08-30 Thread Apache Spark (JIRA)

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

Apache Spark reassigned SPARK-10290:


Assignee: (was: Apache Spark)

 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org