You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Pierre Huyn (JIRA)" <ji...@apache.org> on 2010/08/28 20:40:55 UTC

[jira] Updated: (HIVE-1130) Create argmin and argmax

     [ 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.