I am trying to create cluster column using the create query
CREATE TABLE videos_by_tag ( tag text, video_id uuid, added_date timestamp, title text, PRIMARY KEY ((tag), added_date, video_id) ) WITH CLUSTERING ORDER BY(added_date DESC);
It's showing the following error. Am i missing something in the create table ?
InvalidRequest: Error from server: code=2200 [Invalid query] message="Clustering key columns must exactly match columns in CLUSTERING ORDER BY directive"
I am using the following version of cassandra on mac os
[cqlsh 5.0.1 | Cassandra 4.0.0.680 | CQL spec 3.4.5