Re: is this correct, thrift unportable to CQL3Š.

2013-09-25 Thread Sylvain Lebresne
@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Tuesday, September 24, 2013 10:58 AM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Re: is this correct, thrift unportable to CQL3Š. On Tue

Re: is this correct, thrift unportable to CQL3Š.

2013-09-25 Thread Alex Popescu
@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Tuesday, September 24, 2013 10:58 AM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Re: is this correct, thrift unportable to CQL3Š. On Tue, Sep 24, 2013

Re: is this correct, thrift unportable to CQL3Š.

2013-09-25 Thread Sylvain Lebresne
, thrift unportable to CQL3Š. On Tue, Sep 24, 2013 at 6:17 PM, Vikas Goyal vi...@easility.commailto: vi...@easility.com wrote: Ok. Great. It works for String and Decimal/Float but not for integer data type.. i.e,, if I am passing to the composite key column which is either text or float

Re: is this correct, thrift unportable to CQL3Š.

2013-09-24 Thread Vikas Goyal
Thanks Sylvain, However,we tried missing the value but it didn't work :( So our code is like below where we are using 3 values if colname is not null..else 2 values.. if (key != null) { PreparedStatement statement = session.prepare(INSERT INTO keys.StringIndice (id,

Re: is this correct, thrift unportable to CQL3Š.

2013-09-24 Thread Sylvain Lebresne
However,we tried missing the value but it didn't work :( Right, because not providing a value is akin to having a null value (in the CQL3 sense of the term, which is different from what Dean asked about) and null values are not allowed for primary key columns. You could however insert an

Re: is this correct, thrift unportable to CQL3Š.

2013-09-24 Thread Vikas Goyal
Ok. Great. It works for String and Decimal/Float but not for integer data type.. i.e,, if I am passing to the composite key column which is either text or float, it works.. session.execute(boundStatement.bind(rowkey, , ByteBuffer.wrap(value))); But not working with bigint, int or varint..and