cloud-fan commented on a change in pull request #26466: [SPARK-29839][SQL]
Supporting STORED AS in CREATE TABLE LIKE
URL: https://github.com/apache/spark/pull/26466#discussion_r347248221
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -119,7 +119,10 @@ statement
(TBLPROPERTIES tableProps=tablePropertyList))*
(AS? query)?
#createHiveTable
| CREATE TABLE (IF NOT EXISTS)? target=tableIdentifier
- LIKE source=tableIdentifier tableProvider? locationSpec?
#createTableLike
+ LIKE source=tableIdentifier
+ (tableProvider | createFileFormat)?
+ locationSpec?
+ (TBLPROPERTIES tableProps=tablePropertyList)?
#createTableLike
Review comment:
We should make them order insensitive. See the parser rule above for
instance.
----------------------------------------------------------------
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]