Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-3576

Regression: ALTER TABLE DROP IF EXISTS PARTITION throws a SemanticException if Partition is not found

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.11.0
    • Component/s: Metastore, Query Processor
    • Labels:
      None

      Description

      Doing a simple "ALTER TABLE testtable DROP IF EXISTS PARTITION(dt=NONEXISTENTPARTITION)" fails with a SemanticException of the 10006 kind (INVALID_PARTITION).

      This does not respect the hive.exec.drop.ignorenonexistent condition either, since there are no if-check-wraps around this area, when fetching partitions from the store.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              qwertymaniac Harsh J
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: