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

RECOVER PARTITIONS might create non-existing partitions

    XMLWordPrintableJSON

Details

    • ghx-label-13

    Description

      The following commands reproduce the bug:

      create table test_table (id int)
      partitioned by (part_field string)
      stored as parquet
      LOCATION ‘/test-warehouse/abc/test’;
      
      insert into test_table (id, part_field) select 1, ‘abc+’;
      
      show partitions test_table; ----> it will show one partition “abc+”
      
      alter table test_table recover partitions;
      
      show partitions test_table; ----> result is showing two partitions, “abc” and “abc+”
      

      The + character can occur anywhere in the string, RECOVER PARTITIONS will create a partition where the + is replaced by a space.

      Seems like other characters don't cause this bug.

      Attachments

        Activity

          People

            gfurnstahl Gergely Fürnstáhl
            boroknagyz Zoltán Borók-Nagy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: