incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Padraig O'Sullivan" <osullivan.padr...@gmail.com>
Subject Re: SuperColumns in C++ API
Date Mon, 15 Mar 2010 17:01:05 GMT
You need to manually set the __isset fields when using the thift API
in C++. Since you are trying to insert a super column, you need to set
the super_column __isset field.

So this:

new_col.__isset.column = true;

should become:

new_col.__isset.super_column = true;

-Padraig

On Mon, Mar 15, 2010 at 12:36 PM, Juan Manuel Garcia del Moral
<juan@southcode.com.ar> wrote:
> Hello
>
> I'm trying to add values using supercolumns but I get this error
>
> ERROR: supercolumn parameter is not optional for super CF Anonimos
>
> This is my code
>
> // **********
>  ColumnPath new_col;
>     new_col.__isset.column     = true; /* this is required! */
>     new_col.column_family.assign("Anonimos");
>     new_col.super_column.assign("Tag");
>
>     client.insert("SocialAds",
>                   "1",
>                   new_col,
>                   "200",
>                   123456789,
>                   ONE);
>
> // **********
>
> What I'm doing wrong?
>
> Thanks
>
> Juan
>
>
Mime
View raw message