You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Oleg Ovlasyuk (JIRA)" <ji...@apache.org> on 2016/12/05 13:17:58 UTC

[jira] [Updated] (HIVE-15358) Strange behavior when partition ends with space

     [ https://issues.apache.org/jira/browse/HIVE-15358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Ovlasyuk updated HIVE-15358:
---------------------------------
    Affects Version/s: 1.1.0

> Strange behavior when partition ends with space
> -----------------------------------------------
>
>                 Key: HIVE-15358
>                 URL: https://issues.apache.org/jira/browse/HIVE-15358
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>         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)