hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Namit Jain (JIRA)" <>
Subject [jira] [Commented] (HIVE-581) improve group by syntax
Date Sat, 12 May 2012 05:38:06 GMT


Namit Jain commented on HIVE-581:

Cant argue against making it configurable ?
In mysql, group by 1 means grouping by the first position.
But, keeping it configurable leaves all the interpretations open, and we can use the same
config. variable for order by also
> improve group by syntax
> -----------------------
>                 Key: HIVE-581
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>          Components: Clients, Query Processor
>            Reporter: Larry Ogrodnek
>            Assignee: Weizhe Shi
>              Labels: features
> It would be nice if group by allowed either column aliases or column position (like mysql).
> It can be burdensome to have to repeat UDFs both in the select and in the group by.
> e.g. instead of:
> select f1(col1), f2(col2), f3(col3), count(1) group by f1(col1), f2(col2), f3(col3);
> it would allow:
> select f1(col1), f2(col2), f3(col3), count(1) group by 1, 2, 3;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message