incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Verde <miguelitov...@gmail.com>
Subject Re: inserting rows in columns inside a supercolumn
Date Thu, 15 Apr 2010 15:44:06 GMT
Just to nitpick your representation a little bit, columnB/etc... are
supercolumnB/etc..., key1/etc... are column1/etc..., and you can probably
omit valueA/valueD designations entirely, it would still be understood.

Columns in Cassandra always have timestamps, you can't omit them.

Can you post a snippet of the code you are using and the error you get?

On Thu, Apr 15, 2010 at 5:02 AM, Julio Carlos Barrera Juez <
juliocarlos@gmail.com> wrote:

> Hi all,
>
> I'm working with Cassandra 0.5 and Thrift API. I have a simple doubt:
>
> I want to insert a row in columns inside a supercolumn, like this (without
> timestamps):
>
> SuperColumnNameA ==> keyA valueA ==> columnB ==> key1 value1
>
>  ==> key2 value2
>
>  ==> key3 value3
>                                                         ==> columnC
> ==> key4 value4
>
>  ==> key5 value5
>                                 ==> keyD valueD ==> columnE ==> *key6
> value6*
>
>  ==> *key7 value7*
>                                                         ==> columnF ==>* key8
> value8*
>
>  ==> *key9 value9*
>
> For instance, I want to insert only key-values 6,7,8 and 9, but when I try
> it, I destroy all the others values. What is the correct mode to do it. I
> have tries obtaining the supercolumn and adding more values, bath_insert(),
> etc, but I always failing.
>
> Thank you.
>

Mime
View raw message