{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12446","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12446/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12446/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12446/events","html_url":"https://github.com/apache/spark/pull/12446","id":148868476,"number":12446,"title":"[SPARK-14684] [SQL] Verification of Partition Specs in SessionCatalog","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":7,"created_at":"2016-04-16T16:36:52Z","updated_at":"2016-04-21T00:46:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12446","html_url":"https://github.com/apache/spark/pull/12446","diff_url":"https://github.com/apache/spark/pull/12446.diff","patch_url":"https://github.com/apache/spark/pull/12446.patch"},"body":"#### What changes were proposed in this pull request?\r\nWhen users inputting invalid partition spec, we might not be able to catch and issue the error messages. Sometimes, it could cause a disaster result. For example, before the PR, when we alter a table and drop a partition with using unknown partitioning columns, we drop all the partitions due to a bug/defect in Hive Metastore API. \r\n\r\nThis PR is to add all the partition-related verification in `SessionCatalog`.\r\n\r\n#### How was this patch tested?\r\nFixed the illegal existing test cases and added new test cases."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/212672485","html_url":"https://github.com/apache/spark/pull/12446#issuecomment-212672485","issue_url":"https://api.github.com/repos/apache/spark/issues/12446","id":212672485,"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},"created_at":"2016-04-21T00:46:48Z","updated_at":"2016-04-21T00:46:48Z","body":"cc @cloud-fan : )"}}