The WHERE clause restrictions depend on the type of statement, type of column, and whether a secondary index is used. For SELECT statements on partition keys, either all keys must be restricted or none. Clustering columns cannot be restricted if preceding ones are not. Secondary indexes allow restricting columns not in the primary key.
25. Clustering column restrictions
SELECT * FROM numberOfRequests
WHERE cluster = ‘cluster1’ AND date =‘2015-09-21’
AND time = ‘00:00’;
[?,?,00:00]
InvalidRequest: code=2200 [Invalid query]
message="PRIMARY KEY column "time" cannot be restricted as preceding
column "datacenter" is not restricted"