Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A886217945 for ; Fri, 5 Jun 2015 01:19:38 +0000 (UTC) Received: (qmail 72328 invoked by uid 500); 5 Jun 2015 01:19:38 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 72290 invoked by uid 500); 5 Jun 2015 01:19:38 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 72148 invoked by uid 99); 5 Jun 2015 01:19:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2015 01:19:38 +0000 Date: Fri, 5 Jun 2015 01:19:38 +0000 (UTC) From: "Abhishek Girish (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3256) Error message can be improved when query fails due to an invalid position in ORDER BY clause 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/DRILL-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Abhishek Girish updated DRILL-3256: ----------------------------------- Description: Error message from Drill: {code:sql} > select s_city, s_store_sk, sum(s_number_employees) from store group by s_city, s_store_sk ORDER BY 40 limit 10; Error: PARSE ERROR: From line 1, column 101 to line 1, column 102: Ordinal out of range [Error Id: 0458fba1-afd6-48cf-89ba-1e4c107d2426 on abhi8.qa.lab:31010] (state=,code=0) {code} Error message from Postgres: {code:sql} # select s_city, s_store_sk, avg(s_number_employees) from store group by s_city, s_store_sk order by 5,6 limit 10; ERROR: ORDER BY position 5 is not in select list LINE 1: ...) from store group by s_city, s_store_sk order by 5,6 limit ... ^ {code} was: Error message from Drill: {code:sql} > select s_city, s_store_sk, sum(s_number_employees) from store group by s_city, s_store_sk ORDER BY 40 limit 10; Error: PARSE ERROR: From line 1, column 101 to line 1, column 102: Ordinal out of range [Error Id: 0458fba1-afd6-48cf-89ba-1e4c107d2426 on abhi8.qa.lab:31010] (state=,code=0) {code} Error message from Postgres: {code:sql} # select s_city, s_store_sk, avg(s_number_employees) from store group by s_city, s_store_sk order by 5,6 limit 10; ERROR: *ORDER BY position 5 is not in select list* LINE 1: ...) from store group by s_city, s_store_sk order by 5,6 limit ... ^ {code} > Error message can be improved when query fails due to an invalid position in ORDER BY clause > -------------------------------------------------------------------------------------------- > > Key: DRILL-3256 > URL: https://issues.apache.org/jira/browse/DRILL-3256 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Affects Versions: 1.1.0 > Reporter: Abhishek Girish > Assignee: Jinfeng Ni > Priority: Minor > > Error message from Drill: > {code:sql} > > select s_city, s_store_sk, sum(s_number_employees) from store group by s_city, s_store_sk ORDER BY 40 limit 10; > Error: PARSE ERROR: From line 1, column 101 to line 1, column 102: Ordinal out of range > [Error Id: 0458fba1-afd6-48cf-89ba-1e4c107d2426 on abhi8.qa.lab:31010] (state=,code=0) > {code} > Error message from Postgres: > {code:sql} > # select s_city, s_store_sk, avg(s_number_employees) from store group by s_city, s_store_sk order by 5,6 limit 10; > ERROR: ORDER BY position 5 is not in select list > LINE 1: ...) from store group by s_city, s_store_sk order by 5,6 limit ... > ^ > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)