i use cassandra 2.1.7 , cql3 processing it.
i have column of type list<text> in table. use datastax cassandra-driver-core-2.1.5 read , write data cassandra. while building of query, saw query building column list<text> wrong.(i checked both query's in datastax devcenter)
my code build query.
clause clause = null; (entry<string, object> val : conditionmap.entryset()) { clause = querybuilder.eq("\"".concat(val.getkey()).concat("\""), val.getvalue()); = where.and(clause); } the query build while use above method.
select * "ashokkeyspace"."table150" "id"=150 , "listdata" =['apple']; what query required.
select * "ashokkeyspace"."table150" "id"=150 , "listdata" contains 'apple';
update: 2.1.7 dropped today
looks supported of driver version 2.1.7.
which not yet officially released / documented.
but can build yourself or hold off until ga.
i recommend waiting before pushing prod because there known performance issues current 2.1.7 branch.
you want new containsclause in query builder.
for updates on release dates etc. see driver mailing list.
Comments
Post a Comment