官方介绍:
https://www.datastax.com/dev/blog/allow-filtering-explained-2
表结构
我们以这张表为例:
create table test(c1 int,c2 int, c3 int,c4 int, primary key(c1,c2,c3));
- c1 是分区键(partition key)
- c2、c3 是排序键(clustering key)
- c4 是普通列
正常查询
Cassandra 支持的查询语句很严格,首先 partition key 必须精确查询。其次: