【发布时间】:2016-04-07 04:10:07
【问题描述】:
我有以下 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"
除了在更新前查询起始值之外,我该如何解决这个问题?
【问题讨论】:
标签: cassandra