简体   繁体   English

Bigquery 数据被自动删除

[英]Bigquery Data got deleted automatically

Google Analytics data got stored in 2 tables Google Analytics 数据存储在 2 个表中

  1. events_{{Date}}事件_{{日期}}
  2. events_intraday_{{Date}} We need t-1 data always and somedays google moves data from events_intraday_ to the events table and somedays it won't move. events_intraday_{{Date}} 我们总是需要 t-1 数据,有时谷歌将数据从 events_intraday_ 移动到事件表,有时它不会移动。 So I created a clone of the events table as new_{{date}} and I wrote a cron to copy events_intraday_{{Date}} one day earlier data to new_{{date}}.所以我创建了一个事件表的克隆作为 new_{{date}} 并且我写了一个 cron 来将 events_intraday_{{Date}} 一天前的数据复制到 new_{{date}}。 It is working fine.它工作正常。 The issue is that without any intervention the newly added data to new_{{date}} got deleted automatically.问题是在没有任何干预的情况下,新添加到 new_{{date}} 的数据被自动删除了。

Since you observed that the data got deleted automatically, it could be because of the table expiration settings.由于您观察到数据被自动删除,这可能是因为表过期设置。 If a table's expiration is reached, the table itself will be dropped.如果达到表的到期时间,表本身将被删除。 If the table is partitioned, the respective partitions that have reached the expiration duration will be dropped.如果表已分区,则将删除已达到过期时间的各个分区。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM