Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DC0C175AC for ; Wed, 9 Dec 2015 14:58:11 +0000 (UTC) Received: (qmail 84928 invoked by uid 500); 9 Dec 2015 14:58:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 84883 invoked by uid 500); 9 Dec 2015 14:58:11 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 84794 invoked by uid 99); 9 Dec 2015 14:58:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 14:58:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 130CD2C1F57 for ; Wed, 9 Dec 2015 14:58:11 +0000 (UTC) Date: Wed, 9 Dec 2015 14:58:11 +0000 (UTC) From: "William Streaker (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10832) DevCenter gives extraneous input error when using order by ASC and limit 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/CASSANDRA-10832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] William Streaker updated CASSANDRA-10832: ----------------------------------------- Summary: DevCenter gives extraneous input error when using order by ASC and limit (was: DevCenter gives extranious input error when using order by ASC and limit) > DevCenter gives extraneous input error when using order by ASC and limit > ------------------------------------------------------------------------ > > Key: CASSANDRA-10832 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10832 > Project: Cassandra > Issue Type: Bug > Components: CQL, Tools > Environment: Windows 8.1 64Bit > Reporter: William Streaker > Priority: Minor > Fix For: 2.1.x > > > When issuing the following statement: > select * from crlfile where group = 'Active' > order by createDt ASC limit 1; > I get this error: > Unable to execute CQL script on 'laptopCluster@envieta': > com.datastax.driver.core.exceptions.SyntaxError: line 2:23 extraneous input '1' expecting EOF > When issuing the statement using DESC order it works. It will also work if I remove the 'limit 1'. This issue occurs with DevCenter 1.4, 1.4.1, and 1.5 > Table Definition: > CREATE TABLE CRLFile ( > group TEXT, -- Group Files by Year-Month(YYYYMM). Latest file will be in group "Active" > createDt TimeStamp, -- Date File was created > fileContents BLOB, -- File itself for download > PRIMARY KEY ( group, createDt )) > WITH CLUSTERING ORDER BY (createDt DESC); > -- This message was sent by Atlassian JIRA (v6.3.4#6332)