You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yi Zhou (JIRA)" <ji...@apache.org> on 2016/08/18 04:14:20 UTC

[jira] [Created] (SPARK-17122) Failed to drop database when use the database in Spark 2.0

Yi Zhou created SPARK-17122:
-------------------------------

             Summary: Failed to drop database when use the database in Spark 2.0
                 Key: SPARK-17122
                 URL: https://issues.apache.org/jira/browse/SPARK-17122
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.0.0
            Reporter: Yi Zhou


Found below case was broken in Spark 2.0, but it can run successfully in Spark 1.6. BTW, the case can also run successfully in Hive. Please see below reproduces for details.

Spark-SQL CLI:
/usr/lib/spark/bin/spark-sql
spark-sql> use test_db;
spark-sql> DROP DATABASE IF EXISTS test_db CASCADE;
16/08/10 15:13:35 INFO execution.SparkSqlParser: Parsing command: DROP DATABASE IF EXISTS test_db CASCADE
Error in query: Can not drop current database `test_db`;

Hive CLI:
/usr/bin/hive
hive> use test_db;
OK
hive> DROP DATABASE IF EXISTS test_db CASCADE;
OK
Time taken: 0.116 seconds



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