You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Ted Zlatanov <tz...@lifelogs.com> on 2010/02/01 19:02:23 UTC

predicate queries (was: bitmap slices)

My list of things I need for predicate queries across column and
supercolumn names:

- bitmask (OR AND1 AND2 AND3 ...).  This would make my life easier and
  take load off our Cassandra servers.  Currently I have to scan the
  result sets on the client side to find the things I need.

- date matching on Long supercolumns (find the last Friday, for example;
  the Calendar fields could be a good query language).  This is not so
  important.

FWIW I'd like an entirely text-based query language like SQL with the
whole query in one string, accessible at the top keyspace level and not
requiring other binary types.  Then you don't have to worry about
overengineering it one way or another, it simply supports whatever is
necessary.  You've already got some of the parser written for the
cassandra-cli stuff.

Another approach is to implement a JDBC driver with very limited
query functionality.

Ted


Re: predicate queries (was: bitmap slices)

Posted by Ryan Daum <ry...@thimbleware.com>.
On Mon, Feb 1, 2010 at 1:55 PM, Jonathan Ellis <jb...@gmail.com> wrote:
> 2010/2/1 Ted Zlatanov <tz...@lifelogs.com>:

> here's the thing, though, and this is a main reason why cassandra
> keeps things simple: doing work on the client typically results in
> *less* load on the server.

I agree with this in general, but while I'm not sure what it would
look like, having some support which would aide the construction of
secondary bitmap indexes could be very interesting.

>
> I think this is a non-starter.  It's pretty clear that the way forward
> is towards more programmatic apis, not clients translating their
> requests to strings which the server then parses.

+1
> -Jonathan
>

Re: predicate queries (was: bitmap slices)

Posted by Jonathan Ellis <jb...@gmail.com>.
2010/2/1 Ted Zlatanov <tz...@lifelogs.com>:
> My list of things I need for predicate queries across column and
> supercolumn names:
>
> - bitmask (OR AND1 AND2 AND3 ...).  This would make my life easier and
>  take load off our Cassandra servers.  Currently I have to scan the
>  result sets on the client side to find the things I need.

here's the thing, though, and this is a main reason why cassandra
keeps things simple: doing work on the client typically results in
*less* load on the server.

> FWIW I'd like an entirely text-based query language like SQL

I think this is a non-starter.  It's pretty clear that the way forward
is towards more programmatic apis, not clients translating their
requests to strings which the server then parses.

-Jonathan