i have cassandra table with partition key as email and clustering key as topic(String) and eventAt(timestamp), i need to query the table to get most recent N topics, the recentency is determined by eventAt, here is the query I have:
BuiltStatement builtStatement =
QueryBuilder.select()
.all()
.from("email_table")
.where(QueryBuilder.eq(Email.COLUMN_EMAIL, bindMarker()))
.and(QueryBuilder.eq(Email.COLUMN_TOPIC, bindMarker()))
.limit(bindMarker());
the results are sorted by eventAt column in desc order, though it's the result I expect but wondering how Cassandra handling the query result ordering? I thought it would be order by eventAt column in asc order but apparently it's not