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
1 Answer
Reset to default 0BigQuery 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
评论列表(0条)