这是我在 Cassandra 中创建表时使用的命令。
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,car_model, id);
但我不确定为什么会收到此错误
Error from server: code=2200 [Invalid query] message="Tables cannot have more than 0 materialized views, failed to create materialized view materialed_view on table materialed_main"