我有以下卡桑德拉表:爲什麼我的Cassandra更新沒有工作?
create table start_stop (id text, start text, end text, price double, PRIMARY KEY (id, start));
我做一個插入這樣的:
insert into start_stop (id, start) values ('123', 'w');
現在我想要做一個更新:
update start_stop set end = 'z' where id = '123';
,我得到一個錯誤: InvalidRequest: code=2200 [Invalid query] message="Some clustering keys are missing: start"
如何解決這個問題,除了在做更新之前查詢起始值?