From a08a4977fb5035219d6429c583f9ab13d7684a34 Mon Sep 17 00:00:00 2001 From: PengLei Date: Thu, 6 Jan 2022 10:26:12 +0800 Subject: [PATCH] add draft --- docs/sql-ref-syntax-aux-show-create-table.md | 21 +++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/sql-ref-syntax-aux-show-create-table.md b/docs/sql-ref-syntax-aux-show-create-table.md index 09571ff8aa914..83013b07213a0 100644 --- a/docs/sql-ref-syntax-aux-show-create-table.md +++ b/docs/sql-ref-syntax-aux-show-create-table.md @@ -39,7 +39,7 @@ SHOW CREATE TABLE table_identifier [ AS SERDE ] * **AS SERDE** - Just for generating Hive DDL for a Hive SerDe table. + Generates Hive DDL for a Hive SerDe table. ### Examples @@ -59,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