将BigQuery数据传输服务(DCM)数据移至另一个项目

时间:2018-09-19 03:55:19

标签: google-cloud-platform google-bigquery double-click-advertising

我在GCP项目A的数据集A中有用于Campaign Manager设置的BigQuery数据传输服务。我想将其移至项目B中的数据集B。如何移动现有数据并设置有损失的BigQuery Transfer数据和重复项?

2 个答案:

答案 0 :(得分:2)

I'm afraid you would have to:

  1. Copy the relevant tables from dataset A to dataset B
  2. Set up the transfer service again for dataset B (assuming it can be done if the tables already exist in the target dataset)
  3. De-dup the data yourself.

A workaround, that achieve something similar but not exactly what you asked, is to create views of relevant tables in dataset A into dataset B.

By doing so, these views will behave like proper tables in dataset B and you don't have to worry about de-deplication, data loss, and setting up again the data transfer. The downside is that you will have to keep dataset A around.

答案 1 :(得分:0)

以下是迁移服务的迁移方式:

  1. 在项目B中启用了转移服务。
  2. 一旦数据开始到达数据集B,历史 从复制数据(从开始到MIN(partition_date)-1) 数据集A到数据集B中的适当分区。
  3. 验证了项目A后,已停止了项目A中的传输服务 分区计数和行计数。