Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.