GitHub user bomeng opened a pull request:
https://github.com/apache/spark/pull/22127
[SPARK-25032][SQL] fix drop database issue
## What changes were proposed in this pull request?
When user tries to drop the current database (other than default database),
after the database is deleted, we should set the database to default.
## How was this patch tested?
A new test case is added to cover this scenario.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bomeng/spark 25032
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/22127.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #22127
----
commit 825533682c98598409e537fa866dcdab915e3948
Author: Bo Meng <bo.meng@...>
Date: 2018-08-16T21:58:17Z
fix drop database issue
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]