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 1108E1190B for ; Tue, 24 Jun 2014 06:48:31 +0000 (UTC) Received: (qmail 97991 invoked by uid 500); 24 Jun 2014 06:48:25 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 97870 invoked by uid 500); 24 Jun 2014 06:48:25 -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 97629 invoked by uid 500); 24 Jun 2014 06:48:25 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 97598 invoked by uid 99); 24 Jun 2014 06:48:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 06:48:25 +0000 Date: Tue, 24 Jun 2014 06:48:25 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-2954) The statement fails when a column part of an ORDER BY is not specified in the SELECT. 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-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Navis updated HIVE-2954: ------------------------ Status: Patch Available (was: Open) Running preliminary test > The statement fails when a column part of an ORDER BY is not specified in the SELECT. > ------------------------------------------------------------------------------------- > > Key: HIVE-2954 > URL: https://issues.apache.org/jira/browse/HIVE-2954 > Project: Hive > Issue Type: Improvement > Components: SQL > Affects Versions: 0.8.1 > Reporter: Mauro Cazzari > Assignee: Navis > Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2954.D2889.1.patch, ASF.LICENSE.NOT.GRANTED--HIVE-2954.D2889.2.patch, HIVE-2954.4.patch.txt, HIVE-2954.D2889.3.patch > > > Given the following table: > CREATE TABLE `DBCSTB32` (`aaa` DOUBLE,`bbb` STRING,`ccc` STRING,`ddd` DOUBLE) ROW FORMAT > DELIMITED FIELDS TERMINATED BY '\001' STORED AS TEXTFILE; > The following statement fails: > select TXT_1`aaa`, TXT_1.`bbb` > from `DBCSTB32` TXT_1 > order by TXT_1.`bbb` asc, TXT_1.`aaa` asc, TXT_1.`ccc` asc > ERROR: java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in > semantic analysis: Line 1:104 Invalid column reference '`ccc`' > Adding `ccc` to the selected list of columns fixes the problem. -- This message was sent by Atlassian JIRA (v6.2#6252)