Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40FDB9C7E for ; Thu, 27 Dec 2012 05:38:19 +0000 (UTC) Received: (qmail 67798 invoked by uid 500); 27 Dec 2012 05:38:17 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 67630 invoked by uid 500); 27 Dec 2012 05:38:17 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 67606 invoked by uid 500); 27 Dec 2012 05:38:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 67602 invoked by uid 99); 27 Dec 2012 05:38:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2012 05:38:16 +0000 Date: Thu, 27 Dec 2012 05:38:16 +0000 (UTC) From: "Zhenxiao Luo (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-581) improve group by syntax MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhenxiao Luo updated HIVE-581: ------------------------------ Attachment: HIVE-581.2.patch.txt > 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: Zhenxiao Luo > Labels: features > Attachments: HIVE-581.1.patch.txt, HIVE-581.2.patch.txt > > > 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 For more information on JIRA, see: http://www.atlassian.com/software/jira