With the following table definition:
CREATE TABLE device_by_create_date (
year int,
comm_nr text,
created_at timestamp,
PRIMARY KEY ((year, comm_nr), created_at)
) WITH CLUSTERING ORDER BY (created_at DESC)
Comm_nr
is a unique identifier.
I would expect to see data ordered by created_at
column, which is not the case when I add data.
Example entries:
Table CQL:
How can I issue select * from table;
queries, which return data ordered by the created_at
row?