You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Zoltán Borók-Nagy (Jira)" <ji...@apache.org> on 2021/10/01 09:27:00 UTC

[jira] [Created] (IMPALA-10946) RECOVER PARTITIONS might create non-existing partitions

Zoltán Borók-Nagy created IMPALA-10946:
------------------------------------------

             Summary: RECOVER PARTITIONS might create non-existing partitions
                 Key: IMPALA-10946
                 URL: https://issues.apache.org/jira/browse/IMPALA-10946
             Project: IMPALA
          Issue Type: Bug
          Components: Catalog, Frontend
            Reporter: Zoltán Borók-Nagy


The following commands reproduce the bug:
{noformat}
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+”
{noformat}

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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)