Cassandra error - Order By only supported when partition key is restricted by EQ or IN
问题 Here is the table I'm creating, this table contains information about players that played the last mundial cup. CREATE TABLE players ( group text, equipt text, number int, position text, name text, day int, month int, year int, club text, liga text, capitan text, PRIMARY key (name, day, month, year)); When doing the following query : Obtain 5 names from the oldest players that were captain of the selection team Here is my query: SELECT name FROM players WHERE captain='YES' ORDER BY year DESC