Reputation: 281
I created a dataset in BigQuery. Unfortunately, it is unclear how to rename it? I clicked on the arrow in the right side of the dataset name, but I can not see any option to rename it.
Upvotes: 0
Views: 2349
Reputation: 2260
It is not possible to rename a dataset when using in BigQuery. Instead, it it required to recreate the resource and copy the old information into the new dataset, as mentioned in the public documentation.
Currently, you cannot change the name of an existing dataset, and you cannot copy a dataset and give it a new name. If you need to change the dataset name, follow these steps to recreate the dataset:
- Create a new dataset and specify the new name.
- Copy the tables from the old dataset to the new one.
- Recreate the views in the new dataset.
- Delete the old dataset to avoid additional storage costs.
Upvotes: 2