Google bigquery BigQuery:在destinationTable上设置expirationTime

Google bigquery BigQuery:在destinationTable上设置expirationTime,google-bigquery,Google Bigquery,我正在BigQuery中的一个大数据集上运行。作业结果存储在一个数据库中。我希望表在1天或1小时内过期(历史数据和今天的数据)。 每个表上是否有设置过期时间的选项 我知道我可以在整个数据集上设置一个,但由于过期时间不同,这不是一个理想的解决方案。检查表的属性 expirationTime long [Optional] The time when this table expires, in milliseconds since the

我正在BigQuery中的一个大数据集上运行。作业结果存储在一个数据库中。我希望表在1天或1小时内过期(历史数据和今天的数据)。 每个表上是否有设置过期时间的选项

我知道我可以在整个数据集上设置一个,但由于过期时间不同,这不是一个理想的解决方案。

检查表的属性

expirationTime  long    [Optional] The time when this table expires, in milliseconds since 
                        the epoch. If not present, the table will persist indefinitely. 
                        Expired tables will be deleted and their storage reclaimed.

您需要在创建或更新表后使用API设置它(取决于您的逻辑)

因此,我在创建作业时无法设置它,但我需要更新新创建表上的过期时间?是的,刚刚注意到。完美的