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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to