You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Cagatay Kavukcuoglu <ca...@gmail.com> on 2010/01/21 19:40:48 UTC

Fetching a subset of subcolumns in all supercolumns of a key

I'm trying to get all supercolumns of a key (actually, a range of keys
with get_range_slice) with a subset of the subcolumns they contain.
The subcolumn names are the same across the supercolumns (which
represent different versions in my data model). I'm unable to find a
ColumnParent and SlicePredicate incantation that works; can the Thrift
interface represent this query? I was able to get all subcolumns by
passing empty column names as start and finish in the slice range, but
neither a range of columns with non-empty start and finish names nor
explicit column names in the predicate work. Is the ability to slice
subcolumns missing by design or is this a bug?

I'm running 0.5.0-rc3 on a single node for this test.

CK.

Re: Fetching a subset of subcolumns in all supercolumns of a key

Posted by Jonathan Ellis <jb...@gmail.com>.
On Thu, Jan 21, 2010 at 12:40 PM, Cagatay Kavukcuoglu
<ca...@gmail.com> wrote:
> I'm trying to get all supercolumns of a key (actually, a range of keys
> with get_range_slice) with a subset of the subcolumns they contain.
> The subcolumn names are the same across the supercolumns (which
> represent different versions in my data model). I'm unable to find a
> ColumnParent and SlicePredicate incantation that works; can the Thrift
> interface represent this query?

No, it can't.  There's an open feature request for this at
https://issues.apache.org/jira/browse/CASSANDRA-571