[
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