GitHub user mgaido91 opened a pull request:

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

    [WIP][SPARK-23866][SQL] Support partition filters in ALTER TABLE DROP 
PARTITION

    ## What changes were proposed in this pull request?
    
    Hive has been supporting for a while the ability of dropping partitions 
using any kind of comparison operator on them. Spark so far is supporting only 
dropping partitions by exact values. For instance, Spark doesn't support:
    
    ```
    ALTER TABLE mytable DROP PARTITION(mydate < '2018-04-06')
    ```
    
    The PR adds the support to this syntax too.
    
    ## How was this patch tested?
    
    UTs to be added


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

    $ git pull https://github.com/mgaido91/spark SPARK-23866

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

    https://github.com/apache/spark/pull/20999.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 #20999
    
----
commit b57a5d1797dbe206aeb0a4d2a24ccd0c73845dc8
Author: Marco Gaido <marcogaido91@...>
Date:   2018-04-05T15:35:19Z

    [WIP][SPARK-23866][SQL] Support partition filters in ALTER TABLE DROP 
PARTITION

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to