You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pavel Yaskevich (JIRA)" <ji...@apache.org> on 2010/09/28 11:30:39 UTC
[jira] Commented: (CASSANDRA-1523) make cli comparator-aware
[ https://issues.apache.org/jira/browse/CASSANDRA-1523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915684#action_12915684 ]
Pavel Yaskevich commented on CASSANDRA-1523:
--------------------------------------------
Added support for IntegerType, new patch (CASSANDRA-1523-v3.patch) attached
> 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.7.0
>
> Attachments: 1523-v2.txt, CASSANDRA-1523-1524.patch, CASSANDRA-1523-v3.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.