2016-09-29 46 views
1

我需要获取为我的api调用处理的总字节数。BigQuery API - totalBytesProcessed返回0

当我启动一个查询jobs.get总是在totalBytesProcessed领域一样返回0:

 [statistics] => Array 
      (
       [creationTime] => 1475161629475 
       [startTime] => 1475161629592 
       [endTime] => 1475161629734 
       [totalBytesProcessed] => 0 
       [query] => Array 
        (
         [totalBytesProcessed] => 0 
         [totalBytesBilled] => 0 
         [cacheHit] => 1 
        ) 

在BigQuery的UI我看到:5.19 KB为我的查询处理。

为什么我的totalBytesProcessed返回0?

回答

2

看看你的cacheHit! 这是真的 - 意思是 - 没有任何字节实际处理 - 而是结果取自缓存

+0

谢谢你它更好,确实 – PhpDeveloper