Cassandra CQL Select count with LIMIT

后端 未结 3 1853
轻奢々
轻奢々 2020-12-06 16:39

I created a simple tabe:

CREATE TABLE test (
  \"type\" varchar,
  \"value\" varchar,
  PRIMARY KEY(type,value)
);

I inserted 5 rows into i

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 17:28

    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

提交回复
热议问题