cloud-fan commented on a change in pull request #28026:
URL: https://github.com/apache/spark/pull/28026#discussion_r510111381
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -387,8 +376,11 @@ tableProvider
createTableClauses
:((OPTIONS options=tablePropertyList) |
- (PARTITIONED BY partitioning=transformList) |
+ (PARTITIONED BY partitioning=partitionFieldList) |
Review comment:
I think an easier way to merge the two syntaxes is
```
(PARTITIONED BY partitioning=partitionFieldList) |
(PARTITIONED BY '(' partitionColumns=colTypeList ')' |
```
Then antlr can help us to guarantee that users can't mix different PARTITION
BY syntaxes, and it requires fewer changes in `AstBuilder`.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]