Reputation: 141
I have a varchar column in a cassandra table which I want to move to a different column with data type as set. What's the best way to do it ? Both columns are in the same table.
Upvotes: 0
Views: 113
Reputation: 87329
You can do it 2 ways:
select * from ks.table where token(partition_key) > start_range AND token(partition_key) <= end_range)
, and ranges you can get via Cluster.metadata.ring
...Upvotes: 1