【发布时间】:2021-04-04 13:33:41
【问题描述】:
我的 CQL 查询
CREATE MATERIALIZED VIEW mv_test AS
SELECT * FROM host_accounts WHERE id IS NOT NULL AND creation_ts IS NOT NULL
PRIMARY KEY (id, creation_ts) WITH clustering ORDER BY (creation_ts DESC);
这是我的查询,但当我使用此查询select * from mv_test where creation_ts > 1606761000 AND creation_ts < 1609353000 时,它给出了此错误InvalidRequest: Error from server: code=2200 [Invalid query] message="Cannot execute this query as it might involve data filtering and thus may have unpredictable performance. If you want to execute this query despite the performance unpredictability, use ALLOW FILTERING";
【问题讨论】:
标签: java database spring-boot cassandra cql