Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.1.0
-
None
-
None
-
None
-
Hive 1.1.0-cdh5.8.0
Description
When insert some data in partition, ending with space, that doesnt exists, everything goes as expected: hdfs folder, ending with space is created.
insert into test_tbl partition(part='p1 ') values('test_value');
But when in next query insert some data in the same partition, but without space, data would be placed in the folder with space
insert into test_tbl partition(part='p1') values('test_value2');
And when try to get data:
select * from test_tbl where part='p1 ' – (with space) returns 2 rows
select * from test_tbl where part='p1' – (without space) returns 0 rows
if delete hdfs directory with space, but dont drop partition and then run query without space:
insert into test_tbl partition(part='p1') values('test_value2');
hdfs folder with splace would be created again.