【发布时间】:2020-09-03 14:05:05
【问题描述】:
我在 BigQuery 中有一个数据集,我每 2 天上传一个新表。所有的表都是一样的。
想要编写和安排查询而不是联合所有表,包括何时将新表上传到数据集。
使用下面的一个并且正在工作,但是每次我添加一个新表时,我都需要手动将它包含在查询中。寻找查询正在查询数据集中所有表的选项。
(Select * from PnL.kapitani as cl WHERE cl.billing_date is not null)
Union ALL (Select * from PnL.One_Time WHERE billing_date is not null)
Union ALL (Select * from PnL.DSP WHERE billing_date is not null)
Union ALL (Select * from PnL.strypes WHERE billing_date is not null)
Union ALL (Select * from PnL.Cloud_Office WHERE billing_date is not null))```
【问题讨论】: