You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by mgaido91 <gi...@git.apache.org> on 2018/09/05 16:12:15 UTC

[GitHub] spark pull request #20999: [WIP][SPARK-23866][SQL] Support partition filters...

GitHub user mgaido91 reopened 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 <ma...@...>
Date:   2018-04-05T15:35:19Z

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

commit 148f47742cae892260c46f9ffa97bb2d0422701d
Author: Marco Gaido <ma...@...>
Date:   2018-09-05T16:11:38Z

    adding UT from SPARK-14922 by DazhuangSu

----


---

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