How Do You Rename a Table in Bigtable?

993 Views Asked by At

I'm trying to rename a table in Google's Bigtable but can't find anything on how to do it.

However, renaming a table in HBase can be done via snapshots, but it is not available in Bigtable.

How can this be achieved?

2

There are 2 best solutions below

0
Solomon Duskis On

There is no way to rename a table in Cloud Bigtable as of yet. It does not have a rename method, nor does it have a Snapshot API. You would have to copy over the data into a new table using Dataflow.

0
gnvk On

You cannot rename a table in Cloud Bigtable. However, there's a quite convenient method to workaround this limitation:

  • Create a backup of the old table
  • Restore the backup to the new table
  • Delete the old table