我的表看起来像这样:
create table dummy(
solution_id text,
some_id uuid,
ts timestamp,
temporal map<text, float>
version int,
data_name text,
primary key(solution_id, data_name, some_id)
);
使用临时键
的二级索引create index on dummy(KEYS(temporal))
我可以进行如下查询:
select * from dummy where solution_id='something' and temporal contains key 'some_key'
我想要做的是检查时间是否包含列表中的任何键,这在Cassandra中是否可行?我不能在primary_key中包含temporal,因为这将是一个动态列,并且会有其他类似的列。