[
https://issues.apache.org/jira/browse/PIG-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Coveney updated PIG-2132:
----------------------------------
Release Note:
All I did was go through all of the Max and Min functions in Piggybank and add
if (first==null)
return second;
if (second==null)
return first;
Following conversation on the message board, the desired outputs are:
null,null -> null
1,null -> 1
null,1 -> 1
1,1 -> 1
This change gives that.
Status: Patch Available (was: Open)
This is my first patch, so I hope that I conformed to procedure properly. If I
should do anything differently, please let me know.
> Piggybank: MIN and MAX functions should ignore nulls
> ----------------------------------------------------
>
> Key: PIG-2132
> URL: https://issues.apache.org/jira/browse/PIG-2132
> Project: Pig
> Issue Type: Bug
> Components: tools
> Reporter: Jonathan Coveney
> Priority: Minor
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> org.apache.pig.piggybank.evaluation.math.MAX and
> org.apache.pig.piggybank.evaluation.math.MIN throws a NullPointerException on
> a null input, when it should just ignore it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira