When I have a table like this in Cassandra:
CREATE TABLE amout( ID int, date timestamp, countValue counter, PRIMARY KEY ((ID), date));
I know about the partitioning key's as stated here:Difference between partition key, composite key and clustering key in Cassandra? But a counter cannot be part of the primary key. Now I want to query based upon the countValue for example like this:
SELECT * from amount WHERE countValue > 10;
Of course this will give an undefined name exception. But is it possible to achieve a query like this without doing something like SELECT * FROM amount;
and then go through the dataset? I want to get the dataset I need.