{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13095","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13095/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13095/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13095/events","html_url":"https://github.com/apache/spark/pull/13095","id":154648106,"number":13095,"title":"[SPARK-15312] [SQL] Detect Duplicate Key in Partition Spec and Table Properties","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":21,"created_at":"2016-05-13T07:14:35Z","updated_at":"2016-05-22T06:16:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13095","html_url":"https://github.com/apache/spark/pull/13095","diff_url":"https://github.com/apache/spark/pull/13095.diff","patch_url":"https://github.com/apache/spark/pull/13095.patch"},"body":"#### What changes were proposed in this pull request?\r\nWhen there are duplicate keys in the partition specs or table properties, we always use the last value and ignore all the previous values. This is caused by the function call `toMap`. \r\n\r\npartition specs or table properties are widely used in multiple DDL statements.\r\n\r\nThis PR is to detect the duplicates and issue an exception if found.\r\n\r\n#### How was this patch tested?\r\nAdded test cases in DDLSuite"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/220816498","html_url":"https://github.com/apache/spark/pull/13095#issuecomment-220816498","issue_url":"https://api.github.com/repos/apache/spark/issues/13095","id":220816498,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-05-22T06:16:48Z","updated_at":"2016-05-22T06:16:48Z","body":"Merged build finished. Test PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}