Sorting order in cassandra result
问题 I created table CREATE TABLE testtab ( testtabmainid bigint, testtabid timeuuid, posteddate timestamp, description text, year bigint, month bigint, day bigint, PRIMARY KEY ((year,month,day),posteddate,testtabmainid) ) WITH CLUSTERING ORDER BY (posteddate DESC,testtabmainid desc); then on SELECT testtabmainid,posteddate,year,month, day FROM testtab; i got result like this testtabmainid / posteddate / year / month / day 90 / 2016-12-01 11:19:11+0530 / 2016 / 11 / 30 89 / 2016-11-30 16:21:58