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 D3DB9D0A4 for ; Mon, 27 May 2013 07:24:25 +0000 (UTC) Received: (qmail 83395 invoked by uid 500); 27 May 2013 07:24:25 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 83133 invoked by uid 500); 27 May 2013 07:24:23 -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 82753 invoked by uid 99); 27 May 2013 07:24:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 May 2013 07:24:21 +0000 Date: Mon, 27 May 2013 07:24:20 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-4450) CQL3: Allow preparing the consistency level, timestamp and ttl 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-4450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13667515#comment-13667515 ] Sylvain Lebresne commented on CASSANDRA-4450: --------------------------------------------- bq. I'd rather see surrogate ks/cf names here I hesitated. But yeah, you're probably right that it's better. I've pushed an additional commit on the branch with that. > CQL3: Allow preparing the consistency level, timestamp and ttl > -------------------------------------------------------------- > > Key: CASSANDRA-4450 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4450 > Project: Cassandra > Issue Type: Improvement > Affects Versions: 1.2.0 > Reporter: Sylvain Lebresne > Assignee: Sylvain Lebresne > Priority: Minor > Labels: cql3 > Fix For: 2.0 > > > It could be useful to allow the preparation of the consitency level, the timestamp and the ttl. I.e. to allow: > {noformat} > UPDATE foo SET .. USING CONSISTENCY ? AND TIMESTAMP ? AND TTL ? > {noformat} > A slight concern is that when preparing a statement we return the names of the prepared variables, but none of timestamp, ttl and consistency are reserved names currently, so returning those as names could conflict with a column name. We can either: > * make these reserved identifier (I have to add that I'm not a fan because at least for "timestamp", I think that's a potentially useful and common column name). > * use some specific special character to indicate those are not column names, like returning "[timestamp]", "[ttl]", "[consistency]". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira