How to get size of cassandra list type column's items
问题 cassandra table seq | keywords | timestamp -----+---------------------+--------------- 100 | ['apple', 'banana'] | 1488637750836 wanted result seq | keyword_size -----+-------------- 100 | 2 query select seq, something(keywords) as keyword_size from t where seq = 100 Is there something like function for count column items? 回答1: There is no builtin method to do this What you can do is get the keywords using a query and get the size using Java or Other programming language from your application