hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Huyn (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1130) Create argmin and argmax
Date Sat, 28 Aug 2010 18:40:55 GMT

     [ https://issues.apache.org/jira/browse/HIVE-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Pierre Huyn updated HIVE-1130:

    Attachment: HIVE-1130.1.patch

Initial release of generic user-defined aggregate function:
                                    ARGMAX (X, Y)
which takes a set of pairs (X,Y) and returns a Y that maximizes X.
X must be of a comparable type. Any pair (NULL,Y) is ignored. If the function is applied to
an empty set, NULL will be returned. If more than one Y value maximizes X, one of them will
be returned arbitrarily.

The current implementation tested out fine with the rebuilt Hive in my working copy of the
SVN tree. However, it fails with ANT TEST and I could not figure out why.

The code is ready for review. Also, any help to figure out why ANT TEST fails is appreciated.

> Create argmin and argmax
> ------------------------
>                 Key: HIVE-1130
>                 URL: https://issues.apache.org/jira/browse/HIVE-1130
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Zheng Shao
>            Assignee: Pierre Huyn
>         Attachments: HIVE-1130.1.patch
> With HIVE-1128, users can already do what argmax and argmin does.
> But it will be helpful if we provide these functions explicitly so people from maths/stats
background can use it more easily.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message