Oleg Ovlasyuk created HIVE-15358: ------------------------------------ Summary: Strange behavior when partition ends with space Key: HIVE-15358 URL: https://issues.apache.org/jira/browse/HIVE-15358 Project: Hive Issue Type: Bug Environment: Hive 1.1.0-cdh5.8.0 Reporter: Oleg Ovlasyuk Priority: Minor
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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)