[ https://issues.apache.org/jira/browse/HIVE-581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273789#comment-13273789 ]
Steven Wong commented on HIVE-581: ---------------------------------- Namit, It may well be a bug. At least I never have a need to group by the value 1. What about "sort/order/distribute/cluster by 1"? It is sorting/... by the value 1 currently. Are those bugs too or valid use cases? It will be quite confusing if "by 1" means the column 1 in one clause and means the value 1 in another clause. > improve group by syntax > ----------------------- > > Key: HIVE-581 > URL: https://issues.apache.org/jira/browse/HIVE-581 > 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira