【问题标题】:Is there a way to create custom day partition on BigQuery Tables?有没有办法在 BigQuery 表上创建自定义日分区?
【发布时间】:2017-10-06 22:40:49
【问题描述】:

我是 BigQuery 的新手,我正在尝试使用谷歌允许的默认分区以外的日期分区创建表。是否可以追溯 DAY 分区的日期?由于我正在尝试加载历史数据,因此今天对这些分区使用没有帮助。我正在通过 Google Storage 在 BigQuery 中创建表。

谢谢!

【问题讨论】:

标签: google-cloud-datastore google-bigquery google-cloud-storage


【解决方案1】:

是的,您可以使用分区装饰器将数据插入特定分区:https://cloud.google.com/bigquery/docs/partitioned-tables#addressing_table_partitions

bq 加载'mydataset.table$20160519' ...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-25
    • 1970-01-01
    • 1970-01-01
    • 2019-08-22
    • 2010-10-23
    • 2010-12-04
    相关资源
    最近更新 更多