using CF:
CREATE TABLE history ( domain text, iid text, timeid timeuuid, data text, comments text, PRIMARY KEY (domain, iid, timeid) );
I would like to request it like this:
select domain, iid, timeid, data, comments from mappings where domain = 'a' and iid = 'b' order by timeid desc;
But it fails with the following error (cassandra 1.1.5):
Bad Request: Order by currently only support the ordering of columns following their declared order in the PRIMARY KEY
Am I doing it wrong? What could be the workaround? thanks
PS I got the job with a single EQ and ORDER BY constraint, but I need at least 2 constraints and an order.
cassandra cql3
Ivan Velykorodnyy
source share