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 E7D86C050 for ; Fri, 27 Apr 2012 00:21:14 +0000 (UTC) Received: (qmail 75233 invoked by uid 500); 27 Apr 2012 00:21:14 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 75177 invoked by uid 500); 27 Apr 2012 00:21:14 -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 75169 invoked by uid 99); 27 Apr 2012 00:21:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Apr 2012 00:21:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Apr 2012 00:21:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 53E7E422CDC for ; Fri, 27 Apr 2012 00:20:51 +0000 (UTC) Date: Fri, 27 Apr 2012 00:20:51 +0000 (UTC) From: "Eric Evans (JIRA)" To: commits@cassandra.apache.org Message-ID: <174069755.1000.1335486051349.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <177323767.83.1335358012214.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-4184) Make identifier and value grammar for CQL3 stricter 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-4184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263268#comment-13263268 ] Eric Evans commented on CASSANDRA-4184: --------------------------------------- Fine by me. > Make identifier and value grammar for CQL3 stricter > --------------------------------------------------- > > Key: CASSANDRA-4184 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4184 > Project: Cassandra > Issue Type: Improvement > Components: API > Affects Versions: 1.1.0 > Reporter: Sylvain Lebresne > Assignee: Sylvain Lebresne > Labels: cql3 > Fix For: 1.1.1 > > Attachments: 0001-Disallow-integer-and-uuid-constants-as-identifier.txt, 0002-Disallow-identifier-as-value.txt > > > The current grammar for CQL3 allows: > # uuid and integer constants as identifiers > # identifier as value (aka term in the grammar) > I think both of those should be removed. > For 1, mostly because this feels useless and slightly complicates the grammar which is annoying for the documentation of CQL3 for instance (note that this doesn't mean forbidding integer or uuid as identifier, but means they have to be double-quoted when used as such). > For 2, I think that allowing identifier as value is actually misleading, typically if you write things like {{SELECT foo WHERE foo=foo}}. It suggests we support JOIN when we do not. > Also, if both are done, then one will always be able to distinguish between identifier and value even without any context, which is a nice property. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira