viirya commented on a change in pull request #24938: [SPARK-27946][SQL] Hive
DDL to Spark DDL conversion USING "show create table"
URL: https://github.com/apache/spark/pull/24938#discussion_r371099850
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -196,7 +196,7 @@ statement
| SHOW PARTITIONS multipartIdentifier partitionSpec?
#showPartitions
| SHOW identifier? FUNCTIONS
(LIKE? (multipartIdentifier | pattern=STRING))?
#showFunctions
- | SHOW CREATE TABLE multipartIdentifier
#showCreateTable
+ | SHOW CREATE TABLE multipartIdentifier (AS SPARK)?
#showCreateTable
Review comment:
A bit confusing and let me confirm. So you mean let SHOW CREATE TABLE work
with `AS SPARK` by default, and only fallback to current behavior (show how to
create Hive serde table) when given `AS SERDE`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]