Github user andrewor14 commented on a diff in the pull request: https://github.com/apache/spark/pull/12362#discussion_r59621133 --- Diff: sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4 --- @@ -55,6 +55,7 @@ statement rowFormat? createFileFormat? locationSpec? (TBLPROPERTIES tablePropertyList)? (AS? query)? #createTable + | createTableHeader LIKE source=tableIdentifier #createTableLike --- End diff -- actually, what does it mean to provide table properties or row format in a `CREATE TABLE LIKE` statement? Trying to merge the provided properties with the existing ones seems complicated and full of corner cases. It might be simpler to just handle `CREATE TABLE x LIKE y` instead of accepting more things that we don't know how to handle.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org