diff --git a/docs/sql-ref-syntax-aux-show-create-table.md b/docs/sql-ref-syntax-aux-show-create-table.md index ae8c10e2d017..83013b07213a 100644 --- a/docs/sql-ref-syntax-aux-show-create-table.md +++ b/docs/sql-ref-syntax-aux-show-create-table.md @@ -26,7 +26,7 @@ license: | ### Syntax ```sql -SHOW CREATE TABLE table_identifier +SHOW CREATE TABLE table_identifier [ AS SERDE ] ``` ### Parameters @@ -37,6 +37,10 @@ SHOW CREATE TABLE table_identifier **Syntax:** `[ database_name. ] table_name` +* **AS SERDE** + + Generates Hive DDL for a Hive SerDe table. + ### Examples ```sql @@ -55,6 +59,25 @@ SHOW CREATE TABLE test; 'prop1' = 'value1', 'prop2' = 'value2') +----------------------------------------------------+ + +SHOW CREATE TABLE test AS SERDE; ++------------------------------------------------------------------------------+ +| createtab_stmt| ++------------------------------------------------------------------------------+ +|CREATE TABLE `default`.`test`( + `c` INT) + ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' + WITH SERDEPROPERTIES ( + 'serialization.format' = ',', + 'field.delim' = ',') + STORED AS + INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' + OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' + TBLPROPERTIES ( + 'prop1' = 'value1', + 'prop2' = 'value2', + 'transient_lastDdlTime' = '1641800515') ++------------------------------------------------------------------------------+ ``` ### Related Statements