You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Rohini Palaniswamy (JIRA)" <ji...@apache.org> on 2015/04/02 19:34:54 UTC

[jira] [Comment Edited] (PIG-4490) MIN/MAX builtin UDFs return wrong results when accumulating for strings

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

Rohini Palaniswamy edited comment on PIG-4490 at 4/2/15 5:34 PM:
-----------------------------------------------------------------

This is bad. Can you please add one testcase in TestBuiltin including both two UDFs for the case of accumulator?


was (Author: rohini):
This is bad. Can you please add a testcase in TestBuiltin for these two UDFs for the case of accumulator?

> MIN/MAX builtin UDFs return wrong results when accumulating for strings
> -----------------------------------------------------------------------
>
>                 Key: PIG-4490
>                 URL: https://issues.apache.org/jira/browse/PIG-4490
>             Project: Pig
>          Issue Type: Bug
>          Components: internal-udfs
>    Affects Versions: 0.12.0, 0.13.0, 0.14.0
>            Reporter: xplenty
>         Attachments: fix-min-max.patch
>
>
> When using MIN/MAX UDFs with strings in a job that uses the accumulator interface the results are wrong - The UDF won't return the correct MIN/MAX value.
> this is caused by a reverse 'GreaterThan/SmallerThan" (<>) sign in the accumulate() function of both StringMin/StringMax UDFs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)