Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/12362#discussion_r59622663
--- 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 --
(For that reason I don't think we should use `createTableHeader` here since
it doesn't make sense to say `CREATE TEMPORARY TABLE x LIKE ...`, and we just
throw an exception downstream anyway.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]