我收到错误,如“表不能有超过 0 个物化视图,无法创建物化视图”

问题描述

这是我在 Cassandra 中创建表时使用的命令。

tsc

这是上表的物化视图。

create table materialed_main (car_make text,car_model text,id int,department text,frist text,last text,primary key(car_make,car_model,id));

但我不知道为什么会出现此错误

create materialized view materialed_view as select * from materialed_main where first is not null and car_make is not null and car_model is not null and id is not null primary key(first,car_make,id);

解决方法

来自documentation

注意:物化视图在 Astra 无服务器数据库上不可用。如需更多信息,请参阅 Astra database limits

第二页说:

二级索引和物化视图不适用于无服务器数据库。我们的团队正在努力尽快为无服务器数据库提供物化视图