Re: Can column type be changed dynamically?

2012-04-29 Thread aaron morton
That sounds right to me. A - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 29/04/2012, at 5:00 AM, Paolo Bernardi wrote: > Apparently IntegerType is based on Java's BigInteger. > > http://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_pla

Re: Can column type be changed dynamically?

2012-04-28 Thread Paolo Bernardi
Apparently IntegerType is based on Java's BigInteger. http://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=src/java/org/apache/cassandra/db/marshal/IntegerType.java;hb=HEAD Given the message, I suspect that you got some values between -2^15 and 2^15-1 (the range of a short int) t

Re: Can column type be changed dynamically?

2012-04-27 Thread 马超
After I update the column type: *update column family User with column_metadata = [{column_name : 77, validation_class : Int32Type}];* I can't list the data in User column family: *list User;* * * *RowKey: 1234* *A int is exactly 4 bytes: 2* Any ideas for this? Thanks, 2012/4/27 马超 > Thanks

Re: Can column type be changed dynamically?

2012-04-27 Thread 马超
Thanks a lot! I will go ahead~ 2012/4/27 Sylvain Lebresne > On Fri, Apr 27, 2012 at 5:26 PM, 马超 wrote: > > Hi all, > > > > I want to change one of my column type from IntegerType to Int32Type > > dynamically. I'm sure all datas in that column are int32 type indeed. So > I > > want changing the

Re: Can column type be changed dynamically?

2012-04-27 Thread Sylvain Lebresne
On Fri, Apr 27, 2012 at 5:26 PM, 马超 wrote: > Hi all, > > I want to change one of my column type from IntegerType to Int32Type > dynamically. I'm sure all datas in that column are int32 type indeed. So I > want changing the column type by: > > update column family XXX with column_metadata = [{colum

Can column type be changed dynamically?

2012-04-27 Thread 马超
Hi all, I want to change one of my column type from IntegerType to Int32Type dynamically. I'm sure all datas in that column are int32 type indeed. So I want changing the column type by: *update column family XXX with column_metadata = [{column_name : 'xxx', validation_class : Int32Type}];* Is th