cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serega Sheypak <serega.shey...@gmail.com>
Subject OrderPreservingPartitioner and compound partition key
Date Wed, 08 Apr 2015 08:27:21 GMT
Hi imagine I have a table "events"
with fields:
ymd int
user_id uuid
ts timestamp
attr_1
attr_2

with primary key ((ymd, user_id, ts))
and I set OrderPreservingPartitioner as a partitioner for the table

ymd is int representation for the day: 20150410, 20150411, e.t.c.

Can I select from table using just ymd field?

select * from events
where ymd = 20150410

Mime
View raw message