Currently, I have the following schema for one of my tables:
id
name
...
country
  - id
  - name
  - city
    - id
    - name
I was looking around the Cassandra documentation, and I cannot find any clear examples or demonstrations as to how I would represent my super columns in a column family. The code I have is as follows:
CREATE COLUMNFAMILY table (
    id varint,
    name varchar,
    <<regular columns omitted>>
    country ..?,
    PRIMARY KEY = (id)
);
 
                        
You can create a user-defined type to attach multiple data fields to a column.
For example, in your case
Can be represented in a UDT as
Now the table definition will look like,
Additional reference for UDT here.