imback82 commented on issue #27482: [SPARK-30613][SQL] Support Hive style REPLACE COLUMNS syntax URL: https://github.com/apache/spark/pull/27482#issuecomment-584986695 We currently have the following for `ADD COLUMN` ``` | ALTER TABLE multipartIdentifier ADD (COLUMN | COLUMNS) columns=qualifiedColTypeWithPositionList #addTableColumns | ALTER TABLE multipartIdentifier ADD (COLUMN | COLUMNS) '(' columns=qualifiedColTypeWithPositionList ')' #addTableColumns ``` But it seems that only the following is the sql standard: ``` | ALTER TABLE multipartIdentifier ADD COLUMN? column=qualifiedColTypeWithPosition ``` , and the following is Hive style: ``` | ALTER TABLE multipartIdentifier ADD COLUMNS '(' columns=qualifiedColTypeWithPositionList ')' ``` Should we fix this as well? (if so, we can combine hive style ADD and REPLACE grammar easily as well.)
---------------------------------------------------------------- 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]
