You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/01/14 17:14:00 UTC

[GitHub] gatorsmile commented on a change in pull request #23535: [SPARK-26613][SQL] Add another rename table grammar for spark sql

gatorsmile commented on a change in pull request #23535: [SPARK-26613][SQL] Add another rename table grammar for spark sql
URL: https://github.com/apache/spark/pull/23535#discussion_r247579058
 
 

 ##########
 File path: sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
 ##########
 @@ -105,6 +105,7 @@ statement
         ADD COLUMNS '(' columns=colTypeList ')'                        #addTableColumns
     | ALTER (TABLE | VIEW) from=tableIdentifier
         RENAME TO to=tableIdentifier                                   #renameTable
+    | RENAME (TABLE | VIEW) from=tableIdentifier TO to=tableIdentifier #renameTable
 
 Review comment:
   Thanks for your contribution! I know, MySQL has both this syntax support and ALTER TABLE ... RENAME... 
   
   In the current stage, we are not randomly adding more syntax to Spark SQL for avoiding extra complexity. In the future, we might support different dialects. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org