Re: Using composite column names in the CLI

2011-05-17 Thread David Boxenhorn
This is what I'm talking about https://issues.apache.org/jira/browse/CASSANDRA-2231 The on-disk format is (short)lengthconstituentend byte = 0(short)lengthconstituentend byte = 0... I would like to be able to input these kinds of keys into the CLI, something like set

Re: Using composite column names in the CLI

2011-05-17 Thread Sylvain Lebresne
Provided you're working on a branch that has CASSANDRA-2231 applied (that's either the cassandra-0.8.1 branch or trunk), this work 'out of the box': The setup will look like: [default@unknown] create keyspace test; [default@unknown] use test; [default@test] create column family testCF with

Re: Using composite column names in the CLI

2011-05-17 Thread David Boxenhorn
Excellent! (I presume there is some way of representing :, like \:?) On Tue, May 17, 2011 at 11:44 AM, Sylvain Lebresne sylv...@datastax.comwrote: Provided you're working on a branch that has CASSANDRA-2231 applied (that's either the cassandra-0.8.1 branch or trunk), this work 'out of the

Re: Using composite column names in the CLI

2011-05-17 Thread Sylvain Lebresne
(I presume there is some way of representing :, like \:?) Well no, not yet, but we'll try to figure something I guess (we'll have the problem with CASSANDRA-2474 I think so we'll probably use the same solution). But let's keep in mind this is unreleased code at this point. And let me also add

Using composite column names in the CLI

2011-05-16 Thread David Boxenhorn
Is there a way to view composite column names in the CLI? Is there a way to input them (i.e. in the set command)?

Re: Using composite column names in the CLI

2011-05-16 Thread Sameer Farooqui
Cassandra wouldn't know that the column name is composite of two different things. So you could just request the column names and values for a specific key like this and then just look at the column names that get returned: [default@MyKeyspace] get DemoCF[ascii('key_42')]; = (column=CA_SanJose,