GitHub user dongjoon-hyun opened a pull request:

    https://github.com/apache/spark/pull/14115

    [SPARK-16459][SQL] Curren database should become `default` when current 
database is dropped

    ## What changes were proposed in this pull request?
    
    In case of dropping current working database, the current database should 
be restored as `default`. This PR fixes the following.
    
    ```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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dongjoon-hyun/spark SPARK-16459

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14115.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 #14115
    
----
commit 302982156bc9d80ededdda6729d3dccd35284ed6
Author: Dongjoon Hyun <[email protected]>
Date:   2016-07-09T10:45:16Z

    [SPARK-16459][SQL] Curren database should become `default` when current 
database is dropped

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to