EDIT1: added a case to describe the problem after the original question.
I wish to query on a column which is not part of my key. If I understand correctly, I need t
PRIMARY KEY (KeyA, KeyB) );
CREATE INDEX ON Table1 (ValueA);
SELECT * FROM Table1 WHERE ValueA > 3000;
The Cassandra way
is to have some partition key and always use that, with a clustering column for ValueA
possibly PRIMARY KEY ((KeyA, KeyB), ValueA)
and then use like:
select * from Table1 where KeyA='xx' and ValueA > 3000