我们正在尝试根据我们的应用程序记录一些事件。有两种类型的事件,
- 客户端事件:由使用 firebase SDK 的 Android 应用程序记录,并由 firebase 保存到 bigquery
- 服务器端事件:我们使用 bigquery 的 go 客户端记录它们
现在,Firebase 将当天的事件存储到 events_intraday_$date 表中,然后将该表刷新到分区表 events_$date 中。
因此,我还将当天的事件记录到 events_intraday_$date 表中。
The events got logged successfully into the table but got deleted the next day when the events_intraday_$date table is flushed into events_$date table.
我无法理解这是怎么发生的。
最佳答案
看起来这是intended behaviour :
Within each dataset, a table is imported for each day of export. Daily tables have the format "ga_sessions_YYYYMMDD".
Intraday data is imported approximately three times a day. Intraday tables have the format "ga_sessions_intraday_YYYYMMDD". During the same day, each import of intraday data overwrites the previous import in the same table.
When the daily import is complete, the intraday table from the previous day is deleted. For the current day, until the first intraday import, there is no intraday table. If an intraday-table write fails, then the previous day's intraday table is preserved.
Data for the current day is not final until the daily import is complete. You may notice differences between intraday and daily data based on active user sessions that cross the time boundary of last intraday import.
关于firebase - 同时从 firebase 以外的来源将数据保存在 bigquery 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56035041/