[
https://issues.apache.org/jira/browse/PIG-3115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13547597#comment-13547597
]
Nick White commented on PIG-3115:
---------------------------------
Yes, it's just defensive programming; I hit one of the NullPointerExceptions
when writing a Pig script, so when I wrote the unit test to track down where it
came from I added tests for all three static classes of Distinct...and so came
across it then.
> 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