I want to create a partitioned table without including the partitioned column name in primary key.
I am not getting any clue how to create it because most of the examples declaring the clustering column in the primary key section.
I am not sure whether it is doable in Cassandra or not hence seeking some help.
CREATE TABLE crossfit_gyms_by_city (
country_code text,
state_province text,
city text,
gym_name text,
year int,
month int,
day int);
My requirement is:
The table should be able to store the data as Year/Month/Day
partition and by the sorting order of city
.