cloud-fan commented on a change in pull request #26419:
[SPARK-29680][SQL][Followup] Replace qualifiedName with multipartIdentifier
URL: https://github.com/apache/spark/pull/26419#discussion_r343501942
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -136,20 +136,22 @@ statement
| ALTER TABLE multipartIdentifier
ADD (COLUMN | COLUMNS)
'(' columns=qualifiedColTypeWithPositionList ')'
#addTableColumns
+ | ALTER TABLE table=multipartIdentifier
+ RENAME COLUMN
+ from=multipartIdentifier TO to=multipartIdentifier
#renameTableColumn
Review comment:
`to` should be a single `identifer`. We can only rename a column or a field,
but not a field chain.
----------------------------------------------------------------
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]