Cassandra 2.0.9 CQL を使用して、特定の列が定義されていない行をどのようにクエリしますか? 例えば:
create table testtable ( id int primary key, thing int );
create index on testtable ( thing );
# can now select rows by thing
insert into testtable( id, thing ) values ( 100, 100 );
# row values will be persistent
update testtable using TTL 30 set thing=1 where id=100;
# wait 30 seconds, thing column will go away for the row
select * from testtable;
理想的には、次のようなことができるようになりたいです。
select * from testtable where NOT DEFINED thing;
またはそのようなもので、id==1 の行が返されます。特定の列値が割り当てられていない行を検索する方法はありますか?
残念ながら、私は Datastax 2.0 のマニュアルと CQLSH のヘルプを調べましたが、演算子や構文を見つけようとしてもうまくいきませんでした。ありがとう。