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

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 2.7.0
    • None
    • 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

            Unassigned Unassigned
            dtsirogiannis Dimitris Tsirogiannis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: