Google cloud Big Query question.
Situation:
- GCP BQ logs where routed to "billing" project on we2 region.
- New project "BillingNew" (region EU) has been created and requested to traffic BQ logs to this project. Also, move historical data.
The problem: How to insert old billing data to a new billing project and nested tables between different projects.
Just in case someone else comes to same rebus:
GCP, BQ logs where routed to "billing" project on we2 region.
New project "BillingNew" (region EU) has been created and requested to traffic BQ logs to this project. Also, move historical data.
Solution:
Create a new dataset on "BillingNew". Re-route all the projects there. Check, make sure live logs are going there.
Copy dataset from old "billing" to a new "BillingNew" project using "transfer job" (script below as example):
Other way:
thanks for suggestions to use "transfer jobs" and copying datasets, as those GCP generated structured, partitioned tables are a way too complicated to work with.