pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xplenty (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-4490) MIN/MAX builtin UDFs return wrong results when accumulating for strings
Date Wed, 29 Apr 2015 12:42:07 GMT

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

xplenty commented on PIG-4490:
------------------------------

I fixed the testcases, everything compiles cleanly now. It fails before the fix and passes
with it.

> 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
>            Assignee: xplenty
>             Fix For: 0.15.0
>
>         Attachments: fix-min-max-test.patch, 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)

Mime
View raw message