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 0555E6AB5 for ; Fri, 24 Jun 2011 10:52:13 +0000 (UTC) Received: (qmail 45046 invoked by uid 500); 24 Jun 2011 10:52:10 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 45016 invoked by uid 500); 24 Jun 2011 10:52:10 -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 45008 invoked by uid 99); 24 Jun 2011 10:52:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 10:52:10 +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 (nike.apache.org: domain of sdolgy@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vx0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 10:52:03 +0000 Received: by vxi40 with SMTP id 40so2752379vxi.31 for ; Fri, 24 Jun 2011 03:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=CAuVaw8n+ukNNjWFy8z7iuOsBp/0+TwPruuNGEk9FtQ=; b=UAnjeZb9lMI9EZoVIe8pJ2CLmntMEht6S2D0cy/abutKygaZkDW/cdLgFOmEDV2PYM CU6KdBuRZbVokqC7sUTFMVEyhcUu80u2KA+MINmxsZVB1mYb2MHg3VVoiYmxkQe0msbU miRFxwuQQtCi5dHOlmss/4Uwdex6Fxw1DL098= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=xA4Bvz/gVIUMko7b/bxX1VWMZ+C2BrWuN+urY5mB6sQoutyreUWPn0iERYg8mYcQoO 0U3keO8DCuqUTFUvLqf8t4+lHXRvI1dFxZvuXomFBsw2myAJvElm++9PTBbhSvG/p0Gj z1brM/n+dtoUDF1w6vInGoiCGfZEZpj0zgvDE= Received: by 10.52.75.170 with SMTP id d10mr4170643vdw.231.1308912702115; Fri, 24 Jun 2011 03:51:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.168.137 with HTTP; Fri, 24 Jun 2011 03:51:22 -0700 (PDT) From: Sasha Dolgy Date: Fri, 24 Jun 2011 12:51:22 +0200 Message-ID: Subject: how to remove a "null" column To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I have implemented counters in a limited capacity to record the number of 'hits' that are received from a given ISO country code. CH for example, or GB. Using 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. I 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 => (counter=6e756c6c, value=1) 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