incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Hood <0x6e6...@gmail.com>
Subject Re: CQL decimal encoding
Date Mon, 24 Feb 2014 19:14:48 GMT
On Mon, Feb 24, 2014 at 7:02 PM, Paul "LeoNerd" Evans
<leonerd@leonerd.org.uk> wrote:
> On Mon, 24 Feb 2014 13:55:07 -0500
> Peter Lin <woolfel@gmail.com> wrote:
>
>> I did the same thing :)
>>
>> I inserted lots of bigDecimal in Cqlsh and read it from my C# client.
>> Then I did the opposite, inserts BigDecimal from C# and query it from
>> cqlsh. Once both directions worked, I had unit tests to make sure
>> data is cross platform compatible.


So I have a question about the encoding of 0: \x00\x00\x00\x00\x00.

Does this not result in 0/0 or do you just interpret the whole byte
sequence as meaning canonically 0?


> Maybe examples like this should be taken as a comment to the core
> developers: Document your stuff better ;)
>
> We client authors shouldn't have to do these reverse-engineering hacks.
> It should have been written down in the spec.


In an ideal world, this kind of thing would happen :-)

Mime
View raw message