Cheng Lian created SPARK-14493:
----------------------------------

             Summary: "CREATE TEMPORARY TABLE ... USING ... AS SELECT ..." 
should always be used with a user defined path
                 Key: SPARK-14493
                 URL: https://issues.apache.org/jira/browse/SPARK-14493
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.0.0
            Reporter: Cheng Lian
            Assignee: Cheng Lian


In current Spark 2.0 master, the following DDL command doesn't specify a 
user-defined path, and writes query result to default Hive warehouse location

{code}
sqlContext sql "CREATE TEMPORARY TABLE y USING PARQUET AS SELECT * FROM x"
{code}

In Spark 1.6, it results in the following exception, which is expected behavior:

{noformat}
scala> sqlContext sql "CREATE TEMPORARY TABLE y USING PARQUET AS SELECT * FROM 
x"
java.util.NoSuchElementException: key not found: path
{noformat}



--
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

Reply via email to