Can I move some columns(cc_payment, keyid) as mentioned below from a Cassandra keyspace billing
to other Cassandra payments
keyspace ? payment_info
is going to be a new table.
Is there any way I can move? Or do I need to COPY TO csv file and import with COPY FROM options? Since the data is huge I am looking for options to directly move from one keyspace to other. We are using datastax cassandra.
Appreciate your help.
FROM
========
keyspace: billing
create table if not exists billing_info (
user_id text,
billing_id timeuuid,
cc_payment frozen<cc_payment>,
keyid text;
PRIMARY KEY((user_id), billing_id)
) WITH CLUSTERING ORDER BY (billing_id DESC);
TO
======
keyspace: payments
create table if not exists payment_info (
user_id text,
payment_id timeuuid,
cc_payment frozen<cc_payment>,
keyid text;
PRIMARY KEY((user_id), payment_id)
) WITH CLUSTERING ORDER BY (payment_id DESC);