GitHub user gatorsmile opened a pull request:

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

    [SPARK-14161] [SQL] Native Parsing for DDL Comand Drop Database

    #### What changes were proposed in this pull request?
    Based on the Hive DDL document 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL
    
    The syntax of DDL command for Drop Database is 
    ```SQL
    DROP (DATABASE|SCHEMA) [IF EXISTS] database_name [RESTRICT|CASCADE];
    ```
    
    This PR is to provide a native parsing support for `DROP DATABASE`. 
    
    #### How was this patch tested?
    
    Added a test case `DDLCommandSuite`

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

    $ git pull https://github.com/gatorsmile/spark parseDropDatabase

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

    https://github.com/apache/spark/pull/11962.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 #11962
    
----
commit 8f20e5ad4798170154385edcd7a54456ff8c3148
Author: gatorsmile <[email protected]>
Date:   2016-03-25T18:21:24Z

    native DDL parsing for Drop Database

----


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