Question

For example in CQL, SELECT * from abc_dimension ORDER BY key ASC;

seems to be not working.

Any help?

Was it helpful?

Solution

There is no support for something like group by in CQL. There is some ordering support but only for columns within a row. Columns will already have a natural ordering within a row but you can retrieve the reverse ordering (ASC vs DSC) by using the REVERSED keyword.

See: http://www.datastax.com/docs/1.0/references/cql/SELECT

OTHER TIPS

Take a look at CQL 3 It was released with Cassandra 1.1 This has the ability of doing things like ORDER BY, but only for the second column in a multi-column primary key. Take a look here: http://www.datastax.com/dev/blog/whats-new-in-cql-3-0

Latest versions of Cassandra support aggregations within single partition only.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top