java - Count Number of Users in Cassandra column family? -


i have table in cassandra-

create table data_holder (user_id text, record_name text, record_value blob, primary key (user_id, record_name)); 

i want count distinct user_id in above table? there way can that?

my cassandra version is:

[cqlsh 4.1.1 | cassandra 2.0.10.71 | dse 4.5.2 | cql spec 3.1.1 | thrift protocol 19.39.0] 

the select expression defined as:

selection_list  | distinct selection_list 

so can:

select distinct user_id data_holder; 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -