Column Family vs Super Column in Cassandra
Q: What is the difference between a column family and a super column in Cassandra?
- Cassandra
- Senior level question
Explore all the latest Cassandra interview questions and answers
ExploreMost Recent & up-to date
100% Actual interview focused
Create Cassandra interview for FREE!
A column family in Cassandra is a table that is composed of columns of related data. A super column is a type of column family that contains columns that are composed of columns of related data. The difference between a column family and a super column is that a super column contains multiple columns of related data, while a column family only contains one column of related data.
For example, if we were creating a column family for student grades, then the column family would contain one column with the student's name, and the data associated with that column would be the student's grade. A super column, however, would contain multiple columns, such as the student's name, age, and grade.
In summary, the main difference between a column family and a super column in Cassandra is that a super column contains multiple columns of related data, while a column family contains only one column of related data.
For example, if we were creating a column family for student grades, then the column family would contain one column with the student's name, and the data associated with that column would be the student's grade. A super column, however, would contain multiple columns, such as the student's name, age, and grade.
In summary, the main difference between a column family and a super column in Cassandra is that a super column contains multiple columns of related data, while a column family contains only one column of related data.


