2
我在我的代碼中寫了bigquery。 我想獲取更大的結果。錯誤:在作業配置中將allowLargeResults設置爲true後仍然出現錯誤?
我還設置了propertie allowLargeResult:真,但我仍然正在錯誤:響應太大返回。考慮在作業配置中將allowLargeResults設置爲true。欲瞭解更多信息,請參見http S://cloud.google.com/bigquery/troubleshooting-errors
這是我的Node.js代碼:
var google = require('googleapis');
var bigquery = google.bigquery('v2');
var authClient = new google.auth.JWT(
'[email protected]',
'keyA.pem',
null, ['https://www.googleapis.com/auth/bigquery']);
var request2 = {
projectId: 'project-bank',
jobId:'job_LHMRhoUfM038QA4jPZHaOESI3Uo',
startIndex: 0,
maxResults: 100000,
timeoutMs: 10000,
configuration:{
allowLargeResults: true
},
auth: authClient
};
var list1 = bigquery.jobs.getQueryResults(request2, function(err, result) {
if (err) {
console.log("### 2 " + err);
} else {
console.log(result);
res.send(result);
}
});
請幫幫忙!
是的,我獲取8百萬記錄..當我指定我的DESTINATION TABLE結果將去他們...所以我不得不再次查詢目的地表..是對的。 ? –
您需要對錶格進行分頁,或者將表格導出爲文件 – Pentium10
您可以提供如何將分頁和其他方法導出表格作爲文件的鏈接.. –