【问题标题】:Is there any way to get the sql of a view just by passing the name of the view in Google bigquery?有什么方法可以通过在 Google bigquery 中传递视图的名称来获取视图的 sql?
【发布时间】:2017-11-22 10:27:52
【问题描述】:

我正在尝试编写一个 python 脚本来提取数据集中的所有视图。 有什么方法可以通过在 Google bigquery 中传递视图的名称来获取视图的 sql 吗?

【问题讨论】:

    标签: python google-cloud-datastore google-bigquery google-cloud-platform


    【解决方案1】:

    调用视图上的tables.get method,并检查view.query attribute

    (如果您要求的是,您无法通过查询接口获取视图的 SQL 文本。)

    【讨论】:

      猜你喜欢
      • 2014-05-22
      • 1970-01-01
      • 2016-03-15
      • 1970-01-01
      • 2020-05-11
      • 2011-07-26
      • 1970-01-01
      • 1970-01-01
      • 2018-06-24
      相关资源
      最近更新 更多