hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-877) Push up filter does not account for added columns in foreach
Date Thu, 11 Feb 2010 22:30:28 GMT

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

Alan Gates updated PIG-877:
---------------------------

    Affects Version/s:     (was: 0.3.1)
                       0.4.0
        Fix Version/s:     (was: 0.3.1)
                       0.4.0

> Push up filter does not account for added columns in foreach
> ------------------------------------------------------------
>
>                 Key: PIG-877
>                 URL: https://issues.apache.org/jira/browse/PIG-877
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Santhosh Srinivasan
>            Assignee: Santhosh Srinivasan
>             Fix For: 0.4.0
>
>         Attachments: PIG-877.patch
>
>
> If a filter follows a foreach that produces an added column then push up filter fails
with a null pointer exception.
> {code}
> ...
> x = foreach w generate $0, COUNT($1);
> y = filter x by $1 > 10;
> {code}
> In the above example, the column in the filter's expression is an added column. As a
result, the optimizer rule is not able to map it back to the input resulting in a null value.
The subsequent for loop is failing due to NPE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message