diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-07-11 15:15:47 +0200 |
---|---|---|
committer | Herman van Hovell <hvanhovell@databricks.com> | 2016-07-11 15:15:47 +0200 |
commit | 7ac79da0e4607f7f89a3617edf53c2b174b378e8 (patch) | |
tree | 45945e49be9c406a8bbfc935f439d14098be9dbc /external/kafka-0-8 | |
parent | 9cb1eb7af779e74165552977002158a7dad9bb09 (diff) | |
download | spark-7ac79da0e4607f7f89a3617edf53c2b174b378e8.tar.gz spark-7ac79da0e4607f7f89a3617edf53c2b174b378e8.tar.bz2 spark-7ac79da0e4607f7f89a3617edf53c2b174b378e8.zip |
[SPARK-16459][SQL] Prevent dropping current database
## What changes were proposed in this pull request?
This PR prevents dropping the current database to avoid errors like the followings.
```scala
scala> sql("create database delete_db")
scala> sql("use delete_db")
scala> sql("drop database delete_db")
scala> sql("create table t as select 1")
org.apache.spark.sql.catalyst.analysis.NoSuchDatabaseException: Database `delete_db` not found;
```
## How was this patch tested?
Pass the Jenkins tests including an updated testcase.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #14115 from dongjoon-hyun/SPARK-16459.
Diffstat (limited to 'external/kafka-0-8')
0 files changed, 0 insertions, 0 deletions