Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4366

Partition is created in HMS even though the ALTER TABLE .. ADD PARTITION stmt fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Impala 2.7.0
    • Fix Version/s: None
    • Component/s: Catalog

      Description

      In some cases, even though adding a partition using an ALTER TABLE ADD PARTITION statement fails, the partition is still created in HMS. To reproduce the problem:

      create table foo (a int) partitioned by (x int);
      alter table foo add partition (x = false); <-- This throws a CatalogException due to the wrong type used.
      alter table foo add partition (x = false); <--- This throws an AlreadyExistsException for partition x=False
      

        Attachments

          Activity

            People

            • Assignee:
              jeszyb Balazs Jeszenszky
              Reporter:
              dtsirogiannis Dimitris Tsirogiannis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: