Re: how to change compare_with

2011-02-02 Thread Vedarth Kulkarni
Thank you. I got it from the examples provided by Hector. Vedarth Kulkarni, TYBSc (Computer Science). On Thu, Feb 3, 2011 at 6:22 AM, Jonathan Ellis wrote: > Correct. But with more and more clients being able to do intelligent > things based on metadata it's not just decoration. (UTF8Type,

Re: how to change compare_with

2011-02-02 Thread Jonathan Ellis
Correct. But with more and more clients being able to do intelligent things based on metadata it's not just decoration. (UTF8Type, LexicalUUIDType, BytesType, and AsciiType all have the same ordering. I believe IntegerType and LongType are equivalent orderings as well.) On Wed, Feb 2, 2011 at 3:

Re: how to change compare_with

2011-02-02 Thread Stu Hood
Not only does the type need to make sense, but it also needs to sort in exactly the same order as the previous type did... in which case there would be no reason to change it? We should probably just say "no, you cannot do this", and explicitly prevent it. On Wed, Feb 2, 2011 at 3:14 PM, Jonathan

Re: how to change compare_with

2011-02-02 Thread Jonathan Ellis
On Wed, Feb 2, 2011 at 3:01 PM, Tyler Hobbs wrote: > I think Jonathan mispoke. I thought I was mistaken, but I was wrong. :) > You cannot change the 'compare_with' attribute of an existing column > family. You can, but it's up to you to make sure that the new type makes sense. Most frequently,

Re: how to change compare_with

2011-02-02 Thread Tyler Hobbs
I think Jonathan mispoke. You cannot change the 'compare_with' attribute of an existing column family. The solution is to create a new column family with the data type that you need. See 'help create column family;' -- Tyler Hobbs Software Engineer, DataStax Maintainer o

Re: how to change compare_with

2011-02-02 Thread Vedarth Kulkarni
I tried "help update column family". It gave me : *valid attributes are: - column_type: Super or Standard - comment: Human-readable column family description. Any string is acceptable - rows_cached: Number or percentage of rows to cache - row_cache_save_period: Period with which to

Re: how to change compare_with

2011-02-02 Thread Jonathan Ellis
On Wed, Feb 2, 2011 at 12:48 PM, Vedarth Kulkarni wrote: > Hello there, > > I am using Cassandra 0.7. Is there any way to change the 'compare_with' from > my program ?, I am using Hector and I am programming in Java. Yes. > Is it possible to change it from the bin/cassandra-cli ? Yes. "help up

how to change compare_with

2011-02-02 Thread Vedarth Kulkarni
Hello there, I am using Cassandra 0.7. Is there any way to change the 'compare_with' from my program ?, I am using Hector and I am programming in Java. OR Is it possible to change it from the bin/cassandra-cli ? Please explain me in detail if possible or suggest me a good resource on the intern