Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8618F6B21 for ; Wed, 13 Jul 2011 01:47:27 +0000 (UTC) Received: (qmail 44751 invoked by uid 500); 13 Jul 2011 01:47:25 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 44588 invoked by uid 500); 13 Jul 2011 01:47:24 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 44580 invoked by uid 99); 13 Jul 2011 01:47:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 01:47:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of synfinatic@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 01:47:17 +0000 Received: by yxp4 with SMTP id 4so2753294yxp.31 for ; Tue, 12 Jul 2011 18:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=PNNOBQoaYOwss2Brkdu971KPRMNDv8/Q+JCKOEbW0dE=; b=QlebYtNNEtpryF1pNEZ+BlCsgmgTojCNlnvf/+BBr5D9nqSff42467snHL41NxOwWN WT1yU8GOSiecJ2hBBPveekoGKUOg/2rUIUPAac3uMakYbA8RGqCdsxzQnj3/9np45nLV dMahPmZlGhOEMYBhpYEFsgK4Qjfg5oKW6Mf8w= Received: by 10.236.154.233 with SMTP id h69mr949227yhk.84.1310521617071; Tue, 12 Jul 2011 18:46:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.99.2 with HTTP; Tue, 12 Jul 2011 18:46:37 -0700 (PDT) In-Reply-To: References: From: Aaron Turner Date: Tue, 12 Jul 2011 18:46:37 -0700 Message-ID: Subject: Re: CQL + Counters = bad request To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Doesn't seem to help: cqlsh> UPDATE RouterAggWeekly SET '1310367600' =3D '1310367600' + 17 WHERE KEY =3D '1_20110728_ifoutmulticastpkts'; Bad Request: line 1:55 no viable alternative at character '+' cqlsh> UPDATE RouterAggWeekly SET 1310367600 =3D '1310367600' + 17 WHERE KEY =3D '1_20110728_ifoutmulticastpkts'; Bad Request: line 1:53 no viable alternative at character '+' cqlsh> UPDATE RouterAggWeekly SET '1310367600' =3D 1310367600 + 17 WHERE KEY =3D '1_20110728_ifoutmulticastpkts'; Bad Request: line 1:53 no viable alternative at character '+' On Tue, Jul 12, 2011 at 5:35 PM, Jonathan Ellis wrote: > Try quoting the column name. > > On Tue, Jul 12, 2011 at 5:30 PM, Aaron Turner wrot= e: >> Using Cassandra 0.8.1 and cql 1.0.3 and following the syntax mentioned >> in https://issues.apache.org/jira/browse/CASSANDRA-2473 >> >> cqlsh> UPDATE RouterAggWeekly SET 1310367600 =3D 1310367600 + 17 WHERE >> KEY =3D '1_20110728_ifoutmulticastpkts'; >> Bad Request: line 1:51 no viable alternative at character '+' >> >> Column names are Long's, hence the INT =3D INT + INT >> >> Ideas? >> >> -- >> Aaron Turner >> http://synfin.net/=A0 =A0 =A0 =A0=A0 Twitter: @synfinatic >> http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & = Windows >> Those who would give up essential Liberty, to purchase a little temporar= y >> Safety, deserve neither Liberty nor Safety. >> =A0 =A0 -- Benjamin Franklin >> "carpe diem quam minimum credula postero" >> > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of DataStax, the source for professional Cassandra support > http://www.datastax.com > --=20 Aaron Turner http://synfin.net/=A0 =A0 =A0 =A0=A0 Twitter: @synfinatic http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Win= dows Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. =A0 =A0 -- Benjamin Franklin "carpe diem quam minimum credula postero"