Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 43001 invoked from network); 1 Oct 2010 17:24:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 17:24:59 -0000 Received: (qmail 24478 invoked by uid 500); 1 Oct 2010 17:24:59 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 24433 invoked by uid 500); 1 Oct 2010 17:24:58 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 24425 invoked by uid 99); 1 Oct 2010 17:24:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 17:24:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 17:24:56 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o91HOYGS024600 for ; Fri, 1 Oct 2010 17:24:35 GMT Message-ID: <25140946.500561285953874767.JavaMail.jira@thor> Date: Fri, 1 Oct 2010 13:24:34 -0400 (EDT) From: "John Sichi (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-1683) Column aliases cannot be used in a group by clause In-Reply-To: <27356065.495181285931494063.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916960#action_12916960 ] John Sichi commented on HIVE-1683: ---------------------------------- This is not a bug and should be closed as invalid. Conceptually, GROUP BY processing happens before SELECT list computation, so it would be circular to allow such references. > Column aliases cannot be used in a group by clause > -------------------------------------------------- > > Key: HIVE-1683 > URL: https://issues.apache.org/jira/browse/HIVE-1683 > Project: Hadoop Hive > Issue Type: Bug > Components: Metastore > Reporter: Shrikrishna Lawande > > Column aliases cannot be used in a group by clause > Following query would fail : > select col1 as t, count(col2) from test group by t; > FAILED: Error in semantic analysis: line 1:49 Invalid Table Alias or Column Reference t -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.