Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 2180 invoked from network); 28 Sep 2010 00:02:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Sep 2010 00:02:55 -0000 Received: (qmail 15527 invoked by uid 500); 28 Sep 2010 00:02:55 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 15510 invoked by uid 500); 28 Sep 2010 00:02:54 -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 15502 invoked by uid 99); 28 Sep 2010 00:02:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 00:02:54 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 00:02:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8S02XRu014184 for ; Tue, 28 Sep 2010 00:02:33 GMT Message-ID: <7747693.433361285632153634.JavaMail.jira@thor> Date: Mon, 27 Sep 2010 20:02:33 -0400 (EDT) From: "Pavel Yaskevich (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Resolved: (CASSANDRA-1523) make cli comparator-aware In-Reply-To: <13757415.318451285084839026.JavaMail.jira@thor> 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-1523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pavel Yaskevich resolved CASSANDRA-1523. ---------------------------------------- Reviewer: jbellis Fix Version/s: 0.6.6 Resolution: Fixed Patch attached for both 1523/1524. > make cli comparator-aware > ------------------------- > > Key: CASSANDRA-1523 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1523 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Reporter: Jonathan Ellis > Assignee: Pavel Yaskevich > Fix For: 0.6.6 > > Attachments: CASSANDRA-1523-1524.patch > > > Cassandra exposes metadata about ColumnFamily definitions (in the describe_keyspace method), including what AbstractType comparator is being used for column names (and values, but those are more complicated and can wait for a separate ticket). We should use that to both display column names in a human-readable format (with AbstractType.getString) and allow taking input in the same format (this will require adding an AbstractType.getBytes method to convert the other direction). > The result should be the ability to do something like this from the cli: > [default@unknown] connect localhost/9160 > Connected to: "Test Cluster" on localhost/9160 > [default@unknown] create keyspace Keyspace1 > fbe30685-c596-11df-a09b-e700f669bcfc > [default@unknown] use Keyspace1 > Authenticated to keyspace: Keyspace1 > [default@Keyspace1] create column family CF2 with comparator='LongType' > d539c227-c597-11df-a09b-e700f669bcfc > [default@Keyspace1] set CF2['key1']['12345'] = 'value' > Currently, the last part fails with "A long is exactly 8 bytes," meaning it didn't know how to convert '12345' into a Long for the column name. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.