GitHub user liancheng opened a pull request:

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

    [SPARK-14346] SHOW CREATE TABLE for data source tables

    ## What changes were proposed in this pull request?
    
    This PR adds native `SHOW CREATE TABLE` DDL command for data source tables. 
Support for Hive tables will be added in follow-up PR(s).
    
    To show table creation DDL for data source tables created by CTAS 
statements, this PR also added partitioning and bucketing support for normal 
`CREATE TABLE ... USING ...` syntax.
    
    ## How was this patch tested?
    
    (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
    
    A new test suite `ShowCreateTableSuite` is added in sql/hive package to 
test the new feature.


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

    $ git pull https://github.com/liancheng/spark spark-14346-show-create-table

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

    https://github.com/apache/spark/pull/12781.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 #12781
    
----
commit bc7354026f728f06f8eaebfbc3bf05a19f2ebcd9
Author: Cheng Lian <[email protected]>
Date:   2016-04-28T06:38:19Z

    Moves table commands to tables.scala

commit 092d9423d982509ffc9e490618a8bf784518c854
Author: Cheng Lian <[email protected]>
Date:   2016-04-29T05:42:05Z

    SHOW CREATE TABLE for data source tables

----


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