GitHub user gatorsmile opened a pull request:

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

    [SPARK-15026] [SQL] Disallow Dropping Multi Partitions By a Single Alter 
Table DDL Command

    #### What changes were proposed in this pull request?
    Currently, we are allowed to drop multiple partitions using a single DDL 
command: Alter Table Drop Partition. However, the internal implementation could 
break atomicity. That means, we could drop a subset of qualified partitions.
    
    This PR disallows dropping multiple partitions by a single command. 
    
    #### How was this patch tested?
    Modified the 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 banDropMultiPart

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

    https://github.com/apache/spark/pull/12801.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 #12801
    
----
commit ddd0b2e788d0d2d0681cdfb4eea39c522d46e10e
Author: gatorsmile <[email protected]>
Date:   2016-04-29T06:54:33Z

    initial fix.

commit 980b51eae9458a19b8b186ff352dbe67265aa0e6
Author: gatorsmile <[email protected]>
Date:   2016-04-29T06:56:07Z

    initial fix.

commit 524d5a40e61de4c4f9d84988b91eb1a41d9e0bdd
Author: gatorsmile <[email protected]>
Date:   2016-04-29T23:55:37Z

    Merge remote-tracking branch 'upstream/master' into banDropMultiPart

commit b0e19c48b612f919364f35eb0325aab28a26c5ea
Author: gatorsmile <[email protected]>
Date:   2016-04-29T23:55:47Z

    Merge remote-tracking branch 'upstream/master' into banDropMultiPart

commit 6272398e7ac97039a21b79a7361cca0d8250261f
Author: gatorsmile <[email protected]>
Date:   2016-04-30T03:50:22Z

    fixed test cases

----


---
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