如何将数据集克隆到另一个BigQuery项目 [英] How to clone a dataset to another BigQuery project

查看:157
本文介绍了如何将数据集克隆到另一个BigQuery项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设每个客户端都有一个Google-BigQuery项目。现在有一个新客户。克隆项目,数据集或诸如新项目视图之类的对象的最佳过程是什么?

Suppose you have a Google-BigQuery project per Client. Now a new Client is coming aboard. What is the best procedure to clone a project, a dataset or an object like a view to a new project?

我有一个数据集,其中的一组视图包含分析逻辑。如果可以将这些视图复制到新项目中,那就太好了。

I have a dataset with a set of views containing analytics logic. It would be great if I could copy those views to the new project.

谢谢

推荐答案

作为选项-您可以使用


  • 使用表:列表API

  • 循环通过所有视图(检查 type 属性)列表响应和

    • take list of all views in your master dataset with Tables: list API
    • loops through all views (check type property) in list response and
      • for each view read with Tables: get API view definition and other relevant properties and
      • then create with Tables: insert API respective view in new dataset

      应该很简单

      这篇关于如何将数据集克隆到另一个BigQuery项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆