hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shao (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1128) Let max/min handle complex types like struct
Date Thu, 04 Feb 2010 00:07:27 GMT

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

Zheng Shao updated HIVE-1128:

    Attachment: HIVE-1128.1.sh

This patch adds new max/min functions which are capable of dealing with complex types. It
also moves the old UDAFMax/UDAFMin into contrib so that people can take these as examples.

Please run "HIVE-1128.1.sh" before applying the patch HIVE-1128.1.patch to make sure we can
keep the svn log information for the moved files.

> Let max/min handle complex types like struct
> --------------------------------------------
>                 Key: HIVE-1128
>                 URL: https://issues.apache.org/jira/browse/HIVE-1128
>             Project: Hadoop Hive
>          Issue Type: Improvement
>    Affects Versions: 0.6.0
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>         Attachments: HIVE-1128.1.patch, HIVE-1128.1.sh
> A lot of users are interested in doing "arg_min" and "arg_max". Basically, return the
value of some other columns when one column's value is the max value.
> The following is an example usage when this is done:
> {code}
> SELECT department, max(struct(salary, employee_name))
> FROM compensations;
> {code}

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

View raw message