dongjoon-hyun commented on a change in pull request #26219: [SPARK-29563][SQL]
CREATE TABLE LIKE should look up catalog/table like v2 commands
URL: https://github.com/apache/spark/pull/26219#discussion_r338788063
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -114,8 +114,8 @@ statement
locationSpec |
(TBLPROPERTIES tableProps=tablePropertyList))*
(AS? query)?
#createHiveTable
- | CREATE TABLE (IF NOT EXISTS)? target=tableIdentifier
- LIKE source=tableIdentifier locationSpec?
#createTableLike
+ | CREATE TABLE (IF NOT EXISTS)? target=multipartIdentifier
+ LIKE source=multipartIdentifier locationSpec?
#createTableLike
Review comment:
Could you re-align `#createTableLike` with the other `#...`?
----------------------------------------------------------------
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]