I'm storing data points in cassandra keyed by a number of values and a timestamp. I'd want to use IN clauses to select points and sliced by time. The in clauses work, but I can't get it to work in combination with the slicing: all values are returned / the range in the where clause seems to be ignored.
A dumbed down abstract version of my layout and some sample data:
So the table contains:
When performing select * from tbl where a in ('a1', 'a2') and (b) in (('b1'), ('b2')) and c > 1; I get:
But I expected:
Am I doing something wrong? Or is c > 1 incorrectly ignored?
select * from tbl where a in ('a1', 'a2') and b='b1' and c > 1; does correctly produce:
So I expect this behaviour to relate to the interworking of the IN clause on the clustering column b and the > predicate on column c.