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

ALTER TABLE DROP PARTITION - Partition Not Found

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.2.2
    • None
    • HiveServer2
    • None

    Description

      ALTER TABLE web_logsz DROP PARTITION (`date`='xyz')
      -- SemanticException [Error 10001]: Table not found web_logsz
      
      ALTER TABLE web_logs DROP PARTITION (`date`='xyz')
      -- Success.
      

      There is no 'xyz' partition for the 'date' column. To make this more consistent, the query should fail if the user tries to drop a partition that does not exist

      Attachments

        1. HIVE-19933.1.patch
          14 kB
          Alice Fan

        Activity

          People

            afan Alice Fan
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: