Alex Liu created SPARK-11320:
--------------------------------

             Summary: DROP TABLE IF EXISTS throws exception if the table does 
not exist.
                 Key: SPARK-11320
                 URL: https://issues.apache.org/jira/browse/SPARK-11320
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 1.4.1
            Reporter: Alex Liu
            Priority: Minor


DROP TABLE IF EXISTS throws exception if the table does not exist.

{code}
scala> val a = hc.sql("use default")
a: org.apache.spark.sql.DataFrame = [result: string]

scala> val b = hc.sql("drop table if exists nope")
ERROR 2015-10-22 09:25:35 hive.ql.metadata.Hive: 
NoSuchObjectException(message:default.nope table not fo
{code}

It's fixed in https://issues.apache.org/jira/browse/HIVE-8564,

We may want to patch 0.13.x as well



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