【问题标题】:Google BigQuery Partitione Tables - How to create tables automatically daily?Google BigQuery 分区表 - 如何每天自动创建表?
【发布时间】:2018-02-27 23:54:51
【问题描述】:

问题是如何让 Google BigQuery 以每日为基础(一天 -> 一张表等)自动创建分区表?

我在命令行中使用了以下命令来创建表:

bq mk --time_partitioning_type=DAY testtable1

table1出现在数据集中,但是如何自动创建每天的表?

【问题讨论】:

    标签: sql google-bigquery google-cloud-platform partition


    【解决方案1】:

    partitioned table documentation,您只需运行一次创建表的命令。之后,指定要写入的分区作为查询的目标表,例如testtable1$20170919

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-22
      • 1970-01-01
      • 2018-08-09
      • 2020-06-01
      • 1970-01-01
      相关资源
      最近更新 更多