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 DDA9D10C86 for ; Fri, 8 Nov 2013 21:33:22 +0000 (UTC) Received: (qmail 62289 invoked by uid 500); 8 Nov 2013 21:33:19 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 62233 invoked by uid 500); 8 Nov 2013 21:33:19 -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 62202 invoked by uid 500); 8 Nov 2013 21:33:19 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 62188 invoked by uid 99); 8 Nov 2013 21:33:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 21:33:19 +0000 Date: Fri, 8 Nov 2013 21:33:19 +0000 (UTC) From: "Harish Butani (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-3107) Improve semantic analyzer to better handle column name references in group by/sort by clauses 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-3107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817711#comment-13817711 ] Harish Butani commented on HIVE-3107: ------------------------------------- Review request: https://reviews.apache.org/r/15361/ > Improve semantic analyzer to better handle column name references in group by/sort by clauses > --------------------------------------------------------------------------------------------- > > Key: HIVE-3107 > URL: https://issues.apache.org/jira/browse/HIVE-3107 > Project: Hive > Issue Type: Improvement > Components: Query Processor > Affects Versions: 0.9.0 > Reporter: Richard Ding > Assignee: Xuefu Zhang > Attachments: HIVE-3107.1.patch > > > This is related to HIVE-1922. > Following queries all fail with various SemanticExceptions: > {code} > explain select t.c from t group by c; > explain select t.c from t group by c sort by t.c; > explain select t.c as c0 from t group by c0; > explain select t.c from t group by t.c sort by t.c; > {code} > It is true that one could always find a version of any of above queries that works. But one has to try to find out and it doesn't work well with machine generated SQL queries. -- This message was sent by Atlassian JIRA (v6.1#6144)