2014-10-19 77 views
2

在最近兩天裏,我在我的流程中出現了一個錯誤,它在最近一年的日常基礎上成功運行。使用TABLE_DATE_RANGE時在API bigquery.jobs.query()中出錯

bigquery.jobs.query()無法識別TABLE_DATE_RANGE(表通配符函數)。

這是我請求(之後我改變了我的ID):

POST https://www.googleapis.com/bigquery/v2/projects/foo/queries?key={YOUR_API_KEY} 

Content-Type: application/json 
Authorization: Bearer XXXXXX 
X-JavaScript-User-Agent: Google APIs Explorer 

{ 

"query": "SELECT COUNT(1) AS CNT FROM TABLE_DATE_RANGE(DEV.FACT_,TIMESTAMP('20141018'),TIMESTAMP('20141019'))", 
"dryRun": true, 
"kind": "bigquery#queryRequest", 
"defaultDataset": { 
    "datasetId": "DEV" 
} 
} 

這是響應:

404 Not Found 

- Hide headers - 

cache-control: private, max-age=0 
content-encoding: gzip 
content-length: 146 
content-type: application/json; charset=UTF-8 
date: Sun, 19 Oct 2014 07:54:53 GMT 
expires: Sun, 19 Oct 2014 07:54:53 GMT 
server: GSE 

{ 
"error": { 
    "errors": [ 
    { 
    "domain": "global", 
    "reason": "notFound", 
    "message": "Not Found: Table foo:DEV.FACT_" 
    } 
    ], 
    "code": 404, 
    "message": "Not Found: Table foo:DEV.FACT_" 
} 
} 

當我執行在瀏覽器中,我得到的結果的查詢。 當我刪除dryRun屬性或將其設置爲False時,我會得到結果(200確定)

Google可以解釋什麼原因?

問候,

LIAD

+0

得到相同的症狀。 – 2014-10-19 09:32:47

回答

0

感謝您的報告。 它看起來像TABLE_DATE_RANGE分辨率爲空運行查詢中斷。我提交了一個錯誤,我們應該儘快修復。如果您想跟蹤解決方案,可以在此處公開問題跟蹤器中提交錯誤:https://code.google.com/p/google-bigquery/

+0

提交的bug http://code.google.com/p/google-bigquery/issues/detail?id=169&q=label%3DBugs – 2014-10-20 04:19:37