最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Can we create minute level partition in BigQuery - Stack Overflow

programmeradmin2浏览0评论

Is there a way to create a minute-level partition in BigQuery? I ask because we are getting a high volume of iot data every minute from our nprobe server. We need to process the data at minute level.

Is this correct?

CREATE OR REPLACE TABLE your_dataset.your_table
PARTITION BY TIMESTAMP_TRUNC(event_timestamp, MINUTE) AS
SELECT
    event_id,
    event_timestamp,
    event_data
FROM
    your_source_table;

Is there a way to create a minute-level partition in BigQuery? I ask because we are getting a high volume of iot data every minute from our nprobe server. We need to process the data at minute level.

Is this correct?

CREATE OR REPLACE TABLE your_dataset.your_table
PARTITION BY TIMESTAMP_TRUNC(event_timestamp, MINUTE) AS
SELECT
    event_id,
    event_timestamp,
    event_data
FROM
    your_source_table;
Share Improve this question edited Mar 13 at 1:33 President James K. Polk 42.1k29 gold badges109 silver badges145 bronze badges asked Mar 11 at 13:45 Vishal ranaVishal rana 197 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

BigQuery doesn't support minute partition. Also if you really partition by minutes, per the maximum 10K partitions per table limit, you can only keep 7 days of data in the table.

发布评论

评论列表(0)

  1. 暂无评论