incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Hood <>
Subject Re: CQL decimal encoding
Date Tue, 25 Feb 2014 15:56:32 GMT
On Tue, Feb 25, 2014 at 12:50 PM, Peter Lin <> wrote:
> if I have time this week, I'll try to make a patch for the spec. Can't
> promise I can get to it this week, but having come across this issue with
> FluentCassandra, I'd like to help others avoid it.

So I may be running into an encoding bug with my serialization. I can
round trip serialization to and from Cassandra successfully, but I
seem to have a discrepancy with cqlsh for some values.

For example, I've encoded 0.131 as \x00\x00\x00\x03\x83. This round
trips successfully with the gocql driver, but cqlsh renders it as
"-0.125". If I try to read the column, my driver gets the value 0.131

So how do I start to debug the data that cqlsh is processing?



View raw message