cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timo Nentwig <timo.nent...@toptarif.de>
Subject Re: sstable2json2sstable bug with json data stored
Date Thu, 16 Jun 2011 08:12:35 GMT
On 6/16/11 10:06, Sasha Dolgy wrote:
> The JSON you are showing below is an export from cassandra?

Yes. Just posted the solution:
https://issues.apache.org/jira/browse/CASSANDRA-2780?focusedCommentId=13050274&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13050274

Guess this could simply be done in the quote() method.

> { "74657374": [["data", "{"foo":"bar"}", 1308209845388000]] }
>
> Does this work?
>
> {
> 74657374: [["data", {foo:"bar"}, 1308209845388000]]
> }
>
> -sd
>
> On Thu, Jun 16, 2011 at 9:49 AM, Timo Nentwig<timo.nentwig@toptarif.de>  wrote:
>> On 6/15/11 17:41, Timo Nentwig wrote:
>>>
>>> (json can likely be boiled down even more...)
>>
>> Any JSON (well, probably anything with quotes...) breaks it:
>>
>> {
>> "74657374": [["data", "{"foo":"bar"}", 1308209845388000]]
>> }
>>
>> [default@foo] set transactions[test][data]='{"foo":"bar"}';
>>
>> I feared that storing data in a readable fashion would be a fateful idea.
>>
>> https://issues.apache.org/jira/browse/CASSANDRA-2780


Mime
View raw message