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 D62A66D65 for ; Fri, 24 Jun 2011 13:29:54 +0000 (UTC) Received: (qmail 93538 invoked by uid 500); 24 Jun 2011 13:29:52 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 93463 invoked by uid 500); 24 Jun 2011 13:29:52 -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 93454 invoked by uid 99); 24 Jun 2011 13:29:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 13:29:52 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 13:29:47 +0000 Received: by wwe5 with SMTP id 5so2426260wwe.25 for ; Fri, 24 Jun 2011 06:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=L/jX0YgkoFIFuyih2ZaEKmO9cvzsE+2ztwEcU+dcqnQ=; b=aCQI2gGpY7RQZIankliaL39T6GD6FLMOsHopHaaG3pB9C89i4F4xVCz/cdVor9EPBt NBbKtHLrkcK2LmrDrju7fsKByjcUoL9ijpMVWve9XhIwNrK1WWs9PKbwvLw4cwXVOTxh HyDS4iNDkUxvaQ/RZGRW8ZCKkNwMSt6CuGJJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=TNT1ADXnlzw5BslXcsmqb+U8APOHUKgSSOTWe8w9hdWu51gHYulJRUxhrm7yN5uosp ltVg5irUH3PLp3vcprRksyo6ocVDXdeIm98CFPs+JnpIyFcCkuuprA+AYUGrIYiORwpB xqgEbgxeiQZ0eLfdsvEszM0xbfusGaYjPg3dI= Received: by 10.216.68.6 with SMTP id k6mr523697wed.85.1308922166096; Fri, 24 Jun 2011 06:29:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.89.70 with HTTP; Fri, 24 Jun 2011 06:29:06 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Fri, 24 Jun 2011 08:29:06 -0500 Message-ID: Subject: Re: how to remove a "null" column To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Looks like the "del" command in CLI does not properly support function calls. Can you create a ticket? In the meantime William's suggestion to use assume should work. On Fri, Jun 24, 2011 at 5:51 AM, Sasha Dolgy wrote: > I have implemented counters in a limited capacity to record the number > of 'hits' that are received from a given ISO country code. =A0CH for > example, or GB. =A0Using phpcassa, these counts are incremented ... all > works great, except, due to a programmatic error, it was possible to > send a "null" country code across and eventually it ends up in > Cassandra. =A0I am unable to remove the null column. > > This is being cleaned up on my end in the code... but found I could > reproduce through the CLI > > [default@sdo] incr counters[ascii('EU')][ascii('null')]; > Value incremented. > [default@sdo] list counters; > Using default limit of 100 > ------------------- > RowKey: 4555 > =3D> (counter=3D6e756c6c, value=3D1) > > 1 Row Returned. > [default@sdo] del counters[ascii('EU')][ascii('null')]; > org.apache.cassandra.db.marshal.MarshalException: cannot parse > 'FUNCTION_CALL' as hex bytes > [default@sdo] > > How to remove a null column or a column called null...? > > -- > Sasha Dolgy > sasha.dolgy@gmail.com > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com