Api 要求获取在查询级别处理的数据的大小

Api call for getting the size of data being processed on query level

在 bigquery UI 上,我们可以看到已处理数据的总大小。 我们如何在调用中获取该信息,并在一周或一个月的晚些时候作为异步调用获取这些信息?同步调用可能不会向我们显示正在处理的总数据,因为通道可能会中断,bq 可能会继续处理并收取使用费,因此我们需要进行异步调用来填补空白。使用 GetQueryResultsResponse class 循环传输数据

您始终可以使用 "jobs" list API call 并检查 totalBytesProcessed 场地。只要您使用的是同一个用户,就可以了

您可以通过 jobs.get or jobs.list method. Once the job has completed, either API call should expose the amount of bytes processed by a query job in the field statistics.query.totalBytesProcessed.

检索它