cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3980) Cli should be able to define CompositeType comparators
Date Wed, 29 Feb 2012 15:21:57 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-3980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219274#comment-13219274
] 

Sylvain Lebresne commented on CASSANDRA-3980:
---------------------------------------------

Hum, what I mean is that on the 1.0 branch, in the cli, you can do:
{noformat}
[default@test] create column family cf with comparator='CompositeType(UTF8Type, Int32Type)';
53c527f0-62e8-11e1-0000-fe8ebeead9f9
Waiting for schema agreement...
... schemas agree across the cluster
[default@test] set cf[a]['foo:3'] = 3;
Value inserted.
Elapsed time: 48 msec(s).
[default@test] get cf[a];
=> (column=foo:3, value=03, timestamp=1330528624015000)
Returned 1 results.
Elapsed time: 43 msec(s).
{noformat}

I agree that an example in the help would be great, and I suppose we could update the CLI
so that you don't need the quotes at all (though imho it's not worth the trouble), but it
works.
                
> Cli should be able to define CompositeType comparators
> ------------------------------------------------------
>
>                 Key: CASSANDRA-3980
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0.9
>
>
> There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type)
in a CF definition.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message