GitHub user viirya opened a pull request:

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

    [SPARK-14592][SQL] Native support for CREATE TABLE LIKE DDL command

    ## What changes were proposed in this pull request?
    JIRA: https://issues.apache.org/jira/browse/SPARK-14592
    
    This patch adds native support for DDL command `CREATE TABLE LIKE`.
    
    The SQL syntax is like:
        
        CREATE TABLE table_name LIKE existing_table
        CREATE TABLE IF NOT EXISTS table_name LIKE existing_table
    
    ## How was this patch tested?
    `HiveDDLCommandSuite`.


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

    $ git pull https://github.com/viirya/spark-1 create-table-like

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

    https://github.com/apache/spark/pull/12362.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 #12362
    
----
commit 2a0a4743a0502dc727ff7aaaa0b5ccd3582e2545
Author: Liang-Chi Hsieh <[email protected]>
Date:   2016-04-13T10:45:13Z

    init import.

commit 6525695c4f7edad066a54c1f9dd17c9f4ad918db
Author: Liang-Chi Hsieh <[email protected]>
Date:   2016-04-13T15:17:36Z

    Make it work.

commit 82a3ee864f3a7a6b5f46801e3e49a714e6e03f1e
Author: Liang-Chi Hsieh <[email protected]>
Date:   2016-04-13T15:28:00Z

    Reset storage location.

commit a23559d0df74df30f08615489dbaa67aaa87e097
Author: Liang-Chi Hsieh <[email protected]>
Date:   2016-04-13T15:31:47Z

    Modify comment.

----


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