Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 16279 invoked from network); 2 Dec 2009 13:12:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Dec 2009 13:12:45 -0000 Received: (qmail 12907 invoked by uid 500); 2 Dec 2009 13:12:45 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 12862 invoked by uid 500); 2 Dec 2009 13:12:45 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 12852 invoked by uid 99); 2 Dec 2009 13:12:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2009 13:12:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2009 13:12:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9B7D3234C045 for ; Wed, 2 Dec 2009 05:12:21 -0800 (PST) Message-ID: <1835405522.1259759541622.JavaMail.jira@brutus> Date: Wed, 2 Dec 2009 13:12:21 +0000 (UTC) From: "gabriele renzi (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Created: (CASSANDRA-594) Add "count" and "del" commands to CLI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Add "count" and "del" commands to CLI ------------------------------------- Key: CASSANDRA-594 URL: https://issues.apache.org/jira/browse/CASSANDRA-594 Project: Cassandra Issue Type: Improvement Components: Tools Affects Versions: 0.5 Environment: all Reporter: gabriele renzi Fix For: 0.5 currently cassandra-cli does not * allow removal of columns * allow visualization of column count for a row (useful for large sets) The attached patch fixes this issue by adding three more commands, del , del , count . No new tests were addded as I could not find any for the CLI, if I have time I'll maybe add some but this is not likely to happen soon. As an aside, IMVHO the cassandra cli would be better as a small lib loaded within jirb/jython, parsing would come for free, flexibility would be much larger and it could be autogenerated from the thrift api. {{{ Connected to localhost/9160 cassandra> get Influences.Influencer['k'] (column=kewl2, value=10; timestamp=1259756945822) (column=kewl, value=10; timestamp=1259753635959) Returned 2 rows. cassandra> del Influences.Influencer['k'] done removal cassandra> get Influences.Influencer['k'] Returned 0 rows. cassandra> set Influences.Influencer['k']['kewl2'] = '10' Value inserted. cassandra> count Influences.Influencer['k'] 1 columns cassandra> del Influences.Influencer['k']['kewl2'] done removal cassandra> count Influences.Influencer['k'] 1 columns cassandra> get Influences.Influencer['k'] Returned 0 rows. cassandra> count Influences.Influencer['k'] 1 columns cassandra> del Influences.Influencer['k'] done removal cassandra> count Influences.Influencer['k'] 0 columns cassandra> get Influences.Influencer['k'] Returned 0 rows. }}} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.