【发布时间】:2016-01-13 18:14:20
【问题描述】:
CASSANDRA 版本:2.1.10
CREATE TABLE customer_raw_data (
id uuid,
hash_prefix bigint,
profile_data map<varchar,varchar>
PRIMARY KEY (hash_prefix,id));
我在 profile_data 上有一个索引,并且我有一个 profile_data 为空的行。
如何编写选择查询来检索 profile_data 为空的行?
我尝试了以下
select count(*) from customer_raw_data where profile_data=null;
select count(*) from customer_raw_data where profile_data CONTAINS KEY null;
【问题讨论】: