【发布时间】:2017-12-15 02:24:54
【问题描述】:
这是我的数据:-
CREATE TABLE collect_things(k int PRIMARY KEY,n set<frozen<tuple<text, text>>>);
INSERT INTO collect_things (k, n) VALUES(1, {('hello', 'cassandra')});
CREATE INDEX n_index ON collect_things (n);
现在我必须像这样查询:-
SELECT * FROM collect_things WHERE n contains ('cassandra') ALLOW FILTERING ;
输出:-
k | n
---+---------
预期输出:-
k | n
---+---------
1 | {('hello', 'cassandra')}
我想用 'cassandra' 值获取我的数据。这可能吗 ?
【问题讨论】:
标签: cassandra spring-data-cassandra