Unable to reuse collection names

A limitation of using collections is that you cannot reuse the name used for a collection column with another collection type. Let's try to drop a collection column and recreate it with a different collection type (drop all depending indexes before dropping the column):

DROP INDEX user_social_identities_idx; ALTER TABLE "users" DROP social_identities; 
ALTER TABLE "users" ADD social_identities set<text>;  

You will get an error:

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.