Seaux
Seaux

Reputation: 3517

Cassandra: Select count of collections

I'm looking to see if its possible to select the count how many items are in a collection like:

SELECT count(emails[]) FROM users WHERE id = '101'

I can't seem to find how in the docs, maybe I'm missing something.

Upvotes: 2

Views: 955

Answers (1)

Mikhail Stepura
Mikhail Stepura

Reputation: 3374

https://issues.apache.org/jira/browse/CASSANDRA-5313

There is no such thing at the moment

Upvotes: 5

Related Questions