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 4CAD217C08 for ; Mon, 6 Apr 2015 05:38:12 +0000 (UTC) Received: (qmail 85507 invoked by uid 500); 6 Apr 2015 05:38:12 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 85473 invoked by uid 500); 6 Apr 2015 05:38:12 -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 85463 invoked by uid 99); 6 Apr 2015 05:38:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2015 05:38:12 +0000 Date: Mon, 6 Apr 2015 05:38:12 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-2689) Parser does not report missing space between order by and limit keyword 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-2689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14480951#comment-14480951 ] Daniel Barclay (Drill) commented on DRILL-2689: ----------------------------------------------- A SQL is not usually required between a (e.g., "]") and a (e.g., the "LIMIT" keyword). Is there some overriding rule that requires a space in the reported case? > Parser does not report missing space between order by and limit keyword > ----------------------------------------------------------------------------- > > Key: DRILL-2689 > URL: https://issues.apache.org/jira/browse/DRILL-2689 > Project: Apache Drill > Issue Type: Bug > Components: SQL Parser > Affects Versions: 0.9.0 > Reporter: Khurram Faraaz > Assignee: Aman Sinha > Priority: Minor > > Note that the space between order by and limit keyword is missing, the query is still executed and the missing space is not reported by the parser. > {code} > 0: jdbc:drill:> select columns[0] from `allTypData2.csv` order by columns[3]limit 3; > +------------+ > | EXPR$0 | > +------------+ > | -2002649798 | > | -31673369 | > | -1777415979 | > +------------+ > 3 rows selected (0.113 seconds) > 0: jdbc:drill:> select columns[0] from `allTypData2.csv` order by columns[3] limit 3; > +------------+ > | EXPR$0 | > +------------+ > | -2002649798 | > | -31673369 | > | -1777415979 | > +------------+ > 3 rows selected (0.119 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)