cql - How to change PARTITION KEY column in Cassandra? - Stack Overflow
You simply cannot alter the primary key of a Cassandra table. You need to create another table with your new schema and perform a data migration. I would suggest that you use Spark for that since it is really easy to do a migration between two tables with only a few lines of code.
Read full article from cql - How to change PARTITION KEY column in Cassandra? - Stack Overflow
No comments:
Post a Comment