cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Hobbs <ty...@datastax.com>
Subject Re: JSON Order By
Date Fri, 02 Oct 2015 15:34:52 GMT
On Thu, Oct 1, 2015 at 9:11 AM, Ashish Soni <asoni.learn@gmail.com> wrote:

> I have a below structure stored in cassandra and i would like to get the
> internal array sorted by a property when i select it , Please let me know
> if there is way to do that .
>
> I need to sort the rules Array by property ruleOrder when i select
>

Unfortunately, that's not possible. Cassandra can only order result rows by
the clustering columns.  The new JSON functionality doesn't change this, it
just adds a new input/output format.  You'll need to sort the results
client-side.


-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Mime
View raw message