You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2013/01/09 03:22:12 UTC

[jira] [Commented] (PIG-3115) Distinct Build-in Function Doesn't Handle Null Bags

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

Daniel Dai commented on PIG-3115:
---------------------------------

Looks good. Only have one question: in getDistinctFromNestedBags, do we need null check if Initial always generate legitimate bag? Is it just for bullet proof?
                
> Distinct Build-in Function Doesn't Handle Null Bags
> ---------------------------------------------------
>
>                 Key: PIG-3115
>                 URL: https://issues.apache.org/jira/browse/PIG-3115
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.10.0
>            Reporter: Nick White
>            Assignee: Nick White
>         Attachments: PIG-3115.1.patch
>
>
> Calling Distinct(NULL) throws NPEs - it should handle this more gracefully. The attached patch makes Distinct(NULL) == {}, although it could return NULL.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira