cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Teodor Sigaev <teo...@sigaev.ru>
Subject Re: Pls, help with fetching of super-column's value
Date Wed, 19 Aug 2009 15:08:56 GMT
> Dunno, then.  Bug in the generated perl code?  Wouldn't be the first time.

Interesting, if column_names is added with known status ids then Cassandra 
returns them although it doesn't take into account reversed and count options.

                 $result = $client->get_slice(
                     'Twitter',
                     $uid,
                     Cassandra::ColumnParent->new({
                         column_family=>'UserRelationships',
                         super_column=>'user_timeline',
                     }),
                     Cassandra::SlicePredicate->new({
                         column_names=>\@StatusIds, #added line
                         slice_range=>Cassandra::SliceRange->new({
                             reversed=>0,
                             count=>3
                         })
                     }),
                     Cassandra::ConsistencyLevel::ONE


I install snapshot version of Thrift and regenerate Perl's interface - all is 
the same.

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

Mime
View raw message