hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Teruyoshi Zenmyo (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6022) Load statements with incorrect order of partitions put input files to unreadable places
Date Fri, 13 Dec 2013 12:39:09 GMT

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

Teruyoshi Zenmyo updated HIVE-6022:
-----------------------------------

    Attachment: HIVE-6022.2.patch.txt

Fixes for the failed tests
- validate partSpec before sorting according to partition keys.
- modify dyn_part4.q.out

> Load statements with incorrect order of partitions put input files to unreadable places
> ---------------------------------------------------------------------------------------
>
>                 Key: HIVE-6022
>                 URL: https://issues.apache.org/jira/browse/HIVE-6022
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Teruyoshi Zenmyo
>         Attachments: HIVE-6022.1.patch, HIVE-6022.1.patch.txt, HIVE-6022.2.patch.txt
>
>
> Load statements with incorrect order of partitions put input files to incorrect paths.

> {code}
> CREATE TABLE test_parts (c1 string, c2 int) PARTITIONED BY (p1 string,p2 string);
> LOAD DATA LOCAL INPATH '/opt/hive/examples/files/kv1.txt' OVERWRITE INTO TABLE test_parts
PARTITION (p2='p1', p1='p2')"
> {code}
> The input file is located as below and the data is not readable.
> {code}
> % find /user/hive/warehouse/test_parts/
> /user/hive/warehouse/test_parts/
> /user/hive/warehouse/test_parts//p1=p2
> /user/hive/warehouse/test_parts//p1=p2/p2=p1
> /user/hive/warehouse/test_parts//p2=p1
> /user/hive/warehouse/test_parts//p2=p1/p1=p2
> /user/hive/warehouse/test_parts//p2=p1/p1=p2/.kv1.txt.crc
> /user/hive/warehouse/test_parts//p2=p1/p1=p2/kv1.txt
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message