Changing comparator

2012-08-03 Thread Christof Roduner
Hi, I know that changing a CF's comparator is not officially supported. However, there is a post by Jonathan Ellis that implies it can be done (www.mail-archive.com/user@cassandra.apache.org/msg09502.html). I assume that we'd have to change entries in the system.schema_* column families. H

Re: Changing comparator

2012-08-03 Thread Roshni Rajagopal
Christof , can't you just use ASSUME for the CQL session? http://www.datastax.com/docs/1.0/references/cql/ASSUME Regards, Roshni On 03/08/12 2:26 PM, "Christof Roduner" wrote: >Hi, > >I know that changing a CF's comparator is not officially supported. >However, there is a post by Jonathan

Re: Changing comparator

2012-08-03 Thread Christof Roduner
Hi Roshni, Thanks for your reply. As far as I know, ASSUME is only for cqlsh and not for CQL in general. (We can of course achieve the same by programmatically setting the encoding. It would be just simpler to let the CQL driver take care of it...) Regards, Christof On 8/3/2012 11:31 AM, R

Re: Changing comparator

2012-08-06 Thread Roshni Rajagopal
Christof, Am not convinced you need to change your comparator. Bytestype works for most sorting even text ones. Did you mean validator- for a column's value. Comparator is for column ordering (ORDER BY in sql). I believe you can just convert the text you want to search for to bytes and then put i