GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/16617
[SPARK-19261][SQL]Support `ALTER TABLE table_name ADD COLUMNS(..)` statement ## What changes were proposed in this pull request? We should support `ALTER TABLE table_name ADD COLUMNS(..)` statement, which already be supported in version < 2.x. This is very useful for those who want to upgrade there Spark version to 2.x. ## How was this patch tested? Add some test cases in `DDLCommandSuite`, and test with Hive in my environment. You can merge this pull request into a Git repository by running: $ git pull https://github.com/stanzhai/spark master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/16617.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 #16617 ---- commit 69729ef083f152eb91a80e1ea7f1481234766c7c Author: zhaishidan <zhaishi...@haizhi.com> Date: 2015-07-14T07:47:36Z fix document error about spark.kryoserializer.buffer.max.mb commit f7f5c77194492c41eaa63efc1516e1cb73603c3f Author: zhaishidan <zhaishi...@haizhi.com> Date: 2016-03-17T10:00:02Z Merge branch 'master' of https://github.com/apache/spark commit e0b6a807a6374553a81a8a07d37fdd643e9fcbc0 Author: StanZhai <stan@stanzhaidemac-mini.local> Date: 2016-10-08T15:22:46Z Merge branch 'master' of https://github.com/apache/spark commit f50377b9e4d5c3ae1a7b232fffe96015319a32af Author: Stan Zhai <zhaishi...@haizhi.com> Date: 2017-01-16T07:45:34Z Merge branch 'master' of https://github.com/apache/spark into stan-master commit 2e1e53a2bd28decef6dbef3af16b10512b26a664 Author: Stan Zhai <zhaishi...@haizhi.com> Date: 2017-01-16T08:43:46Z support `alter table add columns` commit e55350a1876e4b46584476795cfce6184248d66d Author: Stan Zhai <zhaishi...@haizhi.com> Date: 2017-01-17T10:16:22Z Merge branch 'master' of https://github.com/apache/spark into stan-master commit ba7373256a9deeefcb22a7facf006ec85403afb9 Author: Stan Zhai <zhaishi...@haizhi.com> Date: 2017-01-17T12:09:42Z update test commit 3cafe2c0d54b0bb2a9d9ff8814e5183571deff26 Author: Stan Zhai <zhaishi...@haizhi.com> Date: 2017-01-17T13:09:58Z revert pom.xml ---- --- 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