I created a simple tabe:
CREATE TABLE test (
\"type\" varchar,
\"value\" varchar,
PRIMARY KEY(type,value)
);
I inserted 5 rows into i
This is a Bug in cassandra and version 2.2.x is affected by it.
https://issues.apache.org/jira/browse/CASSANDRA-8216
They have marked it as fixed, but clearly this has propagated to version beyond fixed version.
Anyways, light, Your assumption/thinking is completely correct. Limit keyword has to be applied on cassandra's count(*), and it works as it should in the versions I am working on 3.2.4 and 2.1.x