Can we create minute level partition in BigQuery - Stack Overflow

Is there a way to create a minute-level partition in BigQuery? I askbecause we are getting a high vol

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744790960a4593913.html

相关推荐

  • Can we create minute level partition in BigQuery - Stack Overflow

    Is there a way to create a minute-level partition in BigQuery? I askbecause we are getting a high vol

    5天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信