You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2018/04/08 04:01:00 UTC

[jira] [Resolved] (SPARK-23866) Extend ALTER TABLE DROP PARTITION syntax to use all comparators

     [ https://issues.apache.org/jira/browse/SPARK-23866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiao Li resolved SPARK-23866.
-----------------------------
    Resolution: Duplicate

> Extend ALTER TABLE DROP PARTITION syntax to use all comparators
> ---------------------------------------------------------------
>
>                 Key: SPARK-23866
>                 URL: https://issues.apache.org/jira/browse/SPARK-23866
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Dong Jiang
>            Priority: Major
>
> Please add SQL support equivalent to drop multiple partitions by operators other than =, basically equivalent of https://issues.apache.org/jira/browse/HIVE-2908
> "To drop a partition from a Hive table, this works:
> ALTER TABLE foo DROP PARTITION(ds = 'date')
> ...but it should also work to drop all partitions prior to date.
> ALTER TABLE foo DROP PARTITION(ds < 'date')
> This task is to implement ALTER TABLE DROP PARTITION for all of the comparators, < > <= >= <> = != instead of just for =."



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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