pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheolsoo Park (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-3657) New partition filter extractor fails with NPE
Date Tue, 18 Feb 2014 19:38:20 GMT

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

Cheolsoo Park commented on PIG-3657:
------------------------------------

I think we should also commit this into 0.12.1 to make NewFilterExtractor more useable.

I will commit the patch if none has objections. Thanks!

> New partition filter extractor fails with NPE
> ---------------------------------------------
>
>                 Key: PIG-3657
>                 URL: https://issues.apache.org/jira/browse/PIG-3657
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>            Reporter: Cheolsoo Park
>            Assignee: Cheolsoo Park
>             Fix For: 0.13.0
>
>         Attachments: PIG-3657-1.patch
>
>
> To reproduce the issue, try a filter expression as follows-
> {code}
> b = FILTER a BY partition_column < x OR (partition_column == y AND non-partition_column
== z); 
> {code}
> Pig fails with NPE, and the stack trace is something like this-
> {code}
> Caused by: java.lang.NullPointerException
>     at org.apache.pig.newplan.FilterExtractor.checkPushDown(FilterExtractor.java:252)
>     at org.apache.pig.newplan.FilterExtractor.visit(FilterExtractor.java:115)
>     at org.apache.pig.newplan.logical.rules.PartitionFilterOptimizer$PartitionFilterPushDownTransformer.transform(PartitionFilterOptimizer.java:150)
>     at org.apache.pig.newplan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:110)
>     ... 18 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message