{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15717","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15717/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15717/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15717/events","html_url":"https://github.com/apache/spark/pull/15717","id":186574323,"number":15717,"title":"[SPARK-17910][SQL] Allow users to update the comment of a column","user":{"login":"jiangxb1987","id":4784782,"avatar_url":"https://avatars.githubusercontent.com/u/4784782?v=3","gravatar_id":"","url":"https://api.github.com/users/jiangxb1987","html_url":"https://github.com/jiangxb1987","followers_url":"https://api.github.com/users/jiangxb1987/followers","following_url":"https://api.github.com/users/jiangxb1987/following{/other_user}","gists_url":"https://api.github.com/users/jiangxb1987/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangxb1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangxb1987/subscriptions","organizations_url":"https://api.github.com/users/jiangxb1987/orgs","repos_url":"https://api.github.com/users/jiangxb1987/repos","events_url":"https://api.github.com/users/jiangxb1987/events{/privacy}","received_events_url":"https://api.github.com/users/jiangxb1987/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-01T16:08:35Z","updated_at":"2016-11-08T07:07:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15717","html_url":"https://github.com/apache/spark/pull/15717","diff_url":"https://github.com/apache/spark/pull/15717.diff","patch_url":"https://github.com/apache/spark/pull/15717.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nRight now, once a user set the comment of a column with create table command, he/she cannot update the comment. It will be useful to provide a public interface (e.g. SQL) to do that.\r\n\r\nThis PR implements the following SQL statement:\r\n```\r\nALTER TABLE table CHANGE COLUMN `col` `col` dataType \"comment\" (FIRST | AFTER `otherCol`) \r\n[, `col2` `col2` dataType \"comment\" (FIRST | AFTER `otherCol`), ...];\r\nALTER VIEW view CHANGE COLUMN `col` `col` dataType \"comment\" (FIRST | AFTER `otherCol`) \r\n[, `col2` `col2` dataType \"comment\" (FIRST | AFTER `otherCol`), ...];\r\n```\r\n\r\nFor further expansion, we could support alter `name`/`dataType`/`index` of a column too.\r\n\r\n## How was this patch tested?\r\n\r\nAdd new test cases in `ExternalCatalogSuite` and `SessionCatalogSuite`.\r\nAdd sql file test for `ALTER TABLE CHANGE COLUMN` statement."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/259062324","html_url":"https://github.com/apache/spark/pull/15717#issuecomment-259062324","issue_url":"https://api.github.com/repos/apache/spark/issues/15717","id":259062324,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T07:07:32Z","updated_at":"2016-11-08T07:07:32Z","body":"**[Test build #68327 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68327/consoleFull)** for PR 15717 at commit [`fda6d3a`](https://github.com/apache/spark/commit/fda6d3a70bba1ddccafb5c13a87aacdfd1c80547)."}}
{"actor":{"display_login":"SparkQA"}}