GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/12446

    [SPARK-14684] [SQL] Verification of Partition Specs in SessionCatalog

    #### What changes were proposed in this pull request?
    When 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. 
    
    This PR is to add all the partition-related verification in 
`SessionCatalog`.
    
    #### How was this patch tested?
    Fixed the illegal existing test cases and added new test cases.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gatorsmile/spark alterPartition

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12446.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 #12446
    
----
commit 0bf2c284c08b8ae76e963f951a34fcb384cdf5fb
Author: gatorsmile <[email protected]>
Date:   2016-04-16T16:03:08Z

    add verification for partition-related APIs

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to