Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-23866

Extend ALTER TABLE DROP PARTITION syntax to use all comparators

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.3.0
    • None
    • SQL
    • None

    Description

      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 =."

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              djiangxu Dong Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: