我正在为我的项目使用 Scylla 数据库和 python Cassandra 驱动程序,我在每个查询上都使用了准备好的语句并且它可以工作,但是当我在物化视图上使用准备好的语句时,它什么也没有返回,你能帮我吗,有什么限制或别的东西?
这是我的架构
CREATE TABLE channelfollowers(
channelid bigint,
userid bigint,
isfavorite boolean,
isBlocked boolean,
followDate bigint,
PRIMARY KEY(userid,channelid,followDate));
CREATE MATERIALIZED VIEW favoriteChannels
AS SELECT channelid, userid, isfavorite
FROM channels.channelfollowers
WHERE channelid IS NOT NULL and userid IS NOT NULL and isfavorite IS NOT NULL
PRIMARY KEY (isfavorite,userid,channelid,followDate);