GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/14186

    [SPARK-16530] [SQL] [TRIVIAL] Wrong Parser Keyword in ALTER TABLE CHANGE 
COLUMN

    #### What changes were proposed in this pull request?
    Based on the [Hive SQL 
syntax](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-ChangeColumnName/Type/Position/Comment),
 the command to change column name/type/position/comment is `ALTER TABLE CHANGE 
COLUMN`. However, in our .g4 file, it is `ALTER TABLE CHANGE COLUMNS`. Because 
it is the last optional keyword, it does not take any effect. Thus, I put the 
issue as a Trivial level.
    
    cc @hvanhovell 
    
    #### How was this patch tested?
    Existing test cases

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gatorsmile/spark changeColumns

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14186.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14186
    
----
commit 89a4eed6f7557bb7264edc067f1406f1904a21b1
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-07-13T19:18:10Z

    fix

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to