Re: OrderPreservingPartitioner and compound partition key

2015-04-09 Thread Serega Sheypak
I understand the reason, but If I user OrderPreservingPartitioner and have compound partition key, can I use select using only FIRST component of compound partition key? 2015-04-08 20:43 GMT+02:00 Robert Coli : > On Wed, Apr 8, 2015 at 1:27 AM, Serega Sheypak > wrote: > >> and I set OrderPreserv

Re: OrderPreservingPartitioner and compound partition key

2015-04-08 Thread Robert Coli
On Wed, Apr 8, 2015 at 1:27 AM, Serega Sheypak wrote: > and I set OrderPreservingPartitioner as a partitioner for the table > As a general statement, you almost certainly do not want to use the OrderPreservingPartitioner for any purpose. It should probably be called the DontUseThisIfYouWantMost

OrderPreservingPartitioner and compound partition key

2015-04-08 Thread Serega Sheypak
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 usin