hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szehon Ho (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-11401) Predicate push down does not work with Parquet when partitions are in the expression
Date Thu, 30 Jul 2015 18:37:05 GMT

    [ https://issues.apache.org/jira/browse/HIVE-11401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14648100#comment-14648100
] 

Szehon Ho commented on HIVE-11401:
----------------------------------

+1 makes sense from my end.

> Predicate push down does not work with Parquet when partitions are in the expression
> ------------------------------------------------------------------------------------
>
>                 Key: HIVE-11401
>                 URL: https://issues.apache.org/jira/browse/HIVE-11401
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Sergio Peña
>            Assignee: Sergio Peña
>         Attachments: HIVE-11401.1.patch
>
>
> When filtering Parquet tables using a partition column, the query fails saying the column
does not exist:
> {noformat}
> hive> create table part1 (id int, content string) partitioned by (p string) stored
as parquet;
> hive> alter table part1 add partition (p='p1');
> hive> insert into table part1 partition (p='p1') values (1, 'a'), (2, 'b');
> hive> select id from part1 where p='p1';
> Failed with exception java.io.IOException:java.lang.IllegalArgumentException: Column
[p] was not found in schema!
> Time taken: 0.151 seconds
> {noformat}
> It is correct that the partition column is not part of the Parquet schema. So, the fix
should be to remove such expression from the Parquet PPD.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message