spark-instrumented-optimizer/sql/catalyst/src/main
Cheng Lian f036dd7ce7 [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.

Author: Cheng Lian <lian@databricks.com>

Closes #12781 from liancheng/spark-14346-show-create-table.
2016-05-11 20:44:04 -07:00
..
antlr4/org/apache/spark/sql/catalyst/parser [SPARK-14346] SHOW CREATE TABLE for data source tables 2016-05-11 20:44:04 -07:00
java/org/apache/spark/sql [SPARK-15259] Sort time metric should not include spill and record insertion time 2016-05-11 11:25:46 -07:00
scala/org/apache/spark/sql [SPARK-14346] SHOW CREATE TABLE for data source tables 2016-05-11 20:44:04 -07:00