hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankur (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1233) NullPointerException in AVG
Date Wed, 17 Feb 2010 05:00:28 GMT

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

Ankur commented on PIG-1233:

       All queries that use AVG(),  have null values for certain keys and have accumulator
turned on for them are affected by this. Please see the test case for a sample query. The
current workaround is to filter the nulls before averaging.

> NullPointerException in AVG 
> ----------------------------
>                 Key: PIG-1233
>                 URL: https://issues.apache.org/jira/browse/PIG-1233
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Ankur
>            Assignee: Ankur
>             Fix For: 0.7.0
>         Attachments: jira-1233.patch
> The overridden method - getValue() in AVG throws null pointer exception in case accumulate()
is not called leaving variable 'intermediateCount'  initialized to null. This causes java
to throw exception when it tries to 'unbox' the value for numeric comparison.

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

View raw message