{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13415","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13415/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13415/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13415/events","html_url":"https://github.com/apache/spark/pull/13415","id":157736596,"number":13415,"title":"[SPARK-15676] [SQL] Disallow Column Names as Partition Columns For Hive Tables","user":{"login":"gatorsmile","id":11567269,"avatar_url":"https://avatars.githubusercontent.com/u/11567269?v=3","gravatar_id":"","url":"https://api.github.com/users/gatorsmile","html_url":"https://github.com/gatorsmile","followers_url":"https://api.github.com/users/gatorsmile/followers","following_url":"https://api.github.com/users/gatorsmile/following{/other_user}","gists_url":"https://api.github.com/users/gatorsmile/gists{/gist_id}","starred_url":"https://api.github.com/users/gatorsmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatorsmile/subscriptions","organizations_url":"https://api.github.com/users/gatorsmile/orgs","repos_url":"https://api.github.com/users/gatorsmile/repos","events_url":"https://api.github.com/users/gatorsmile/events{/privacy}","received_events_url":"https://api.github.com/users/gatorsmile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-05-31T18:18:02Z","updated_at":"2016-06-07T02:42:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13415","html_url":"https://github.com/apache/spark/pull/13415","diff_url":"https://github.com/apache/spark/pull/13415.diff","patch_url":"https://github.com/apache/spark/pull/13415.patch"},"body":"#### What changes were proposed in this pull request?\r\nWhen creating a Hive Table (not data source tables), a common error users might make is to specify an existing column name as a partition column. Below is what Hive returns in this case:\r\n```\r\nhive> CREATE TABLE partitioned (id bigint, data string) PARTITIONED BY (data string, part string);\r\nFAILED: SemanticException [Error 10035]: Column repeated in partitioning columns\r\n```\r\nCurrently, the error we issued is very confusing: \r\n```\r\norg.apache.spark.sql.AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.);\r\n```\r\nThis PR is to fix the above issue by capturing the usage error in `Parser`. \r\n\r\n#### How was this patch tested?\r\nAdded a test case to `DDLCommandSuite`"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/224152362","html_url":"https://github.com/apache/spark/pull/13415#issuecomment-224152362","issue_url":"https://api.github.com/repos/apache/spark/issues/13415","id":224152362,"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-06-07T02:42:31Z","updated_at":"2016-06-07T02:42:31Z","body":"**[Test build #60099 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60099/consoleFull)** for PR 13415 at commit [`f4207e3`](https://github.com/apache/spark/commit/f4207e3c185a13a7f2866b0f12fcde5b28b8d948)."}}
{"actor":{"display_login":"SparkQA"}}