You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Alex Levenson (JIRA)" <ji...@apache.org> on 2015/02/03 21:56:34 UTC
[jira] [Commented] (PARQUET-173) StatisticsFilter doesn't handle
And properly
[ https://issues.apache.org/jira/browse/PARQUET-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14303966#comment-14303966 ]
Alex Levenson commented on PARQUET-173:
---------------------------------------
Thanks for the fix!
> StatisticsFilter doesn't handle And properly
> --------------------------------------------
>
> Key: PARQUET-173
> URL: https://issues.apache.org/jira/browse/PARQUET-173
> Project: Parquet
> Issue Type: Bug
> Components: parquet-mr
> Affects Versions: 1.6.0rc2
> Reporter: Cheng Lian
> Priority: Blocker
> Fix For: parquet-mr_1.6.0
>
>
> I guess it's [a pretty straightforward mistake|https://github.com/apache/incubator-parquet-mr/blob/4bf9be34a87b51d07e0b0c9e74831bbcdbce0f74/parquet-hadoop/src/main/java/parquet/filter2/statisticslevel/StatisticsFilter.java#L225-L237] :)
> {code}
> @Override
> public Boolean visit(And and) {
> return and.getLeft().accept(this) && and.getRight().accept(this);
> }
> @Override
> public Boolean visit(Or or) {
> // seems unintuitive to put an && not an || here
> // but we can only drop a chunk of records if we know that
> // both the left and right predicates agree that no matter what
> // we don't need this chunk.
> return or.getLeft().accept(this) && or.getRight().accept(this);
> }
> {code}
> The consequence is that filter predicates like {{a > 10 && a < 20}} can never drop any row groups.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)