简体   繁体   English

使用bigquery Java API获得更小的查询结果

[英]Got smaller query results using bigquery java api

I used the java file here https://developers.google.com/bigquery/articles/gettingstartedwithjava It worked perfectly before but since last weekend, every time when i ran it, it always return only 512 records for any query. 我在这里使用了Java文件https://developers.google.com/bigquery/articles/gettingstartedwithjava之前它运行良好,但是自上周末以来,每次我运行它时,对于任何查询,它始终仅返回512条记录。 And I tried the same query directly in web browser by bigquery, it returned 3000+ records. 我通过bigquery在网络浏览器中直接尝试了相同的查询,它返回了3000多个记录。 Any help? 有什么帮助吗? Thanks. 谢谢。

The difference is that you're just getting back the first page of results. 区别在于您只是返回结果的第一页。 Try either calling setMaxResults () or paging through the results you get back (by using the pageToken from the GetQueryResultsResponse to request the next page in a subsequent call to getQueryResults(..)....execute(); 尝试调用setMaxResults ()或对返回的结果进行分页(通过使用GetQueryResultsResponsepageToken来请求后续调用getQueryResults(..)....execute();的下一页getQueryResults(..)....execute();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM