How to rename table in Cassandra CQL3 -
i'm trying rename table created via cqlsh. e.g. rename table "aaa" "bbb". can't find command so. ideas?
using [cqlsh 3.1.6 | cassandra 1.2.8 | cql spec 3.0.0 | thrift protocol 19.36.0]
i don't believe can rename tables or keyspaces, there's no cql3 operation it, , nothing in old thirft interfaces either, if remember correctly.
one reason why can't extremely hard thing cassandra due distributed nature, change can't done atomically cluster in inconsistent state, , updates lost. it's similar creating , dropping tables, in cases it's expected updates lost if they're issued before table created or after has been dropped.
the way know of ask create new table , move data old new, drop old table. there might way without moving data, require stop cluster , change name of directories , files belonging table, , change metadata in system.schema_columnfamilies
table (but i'm not sure can that).
Comments
Post a Comment