在Cassandra中,我正在使用CQL:
(其中
这将返回以下响应:
select msg from log where id in ('A', 'B') and filter1 = 'filter'
(其中
id
是分区键, filter1
是二级索引, filter1
不能用作聚簇列)。这将返回以下响应:
Select on indexed columns and with IN clause for the PRIMARY KEY are not supported
我该如何修改CQL以避免这种情况发生?