【发布时间】:2016-09-29 14:02:14
【问题描述】:
tabledata.list 期间出现错误并显示消息:
API limit exceeded: Unable to return a row that exceeds the API limits. To retrieve the row, export the table.
它没有在https://cloud.google.com/bigquery/troubleshooting-errors#errortable 列出。
这个错误每次都会发生。
我们可以正常将这张表导出到GCS中。结果看起来很正常(没有特别大的行)。
我们设法在实际错误发生之前检索了几个结果页面。
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "API limit exceeded: Unable to return a row that exceeds the API limits. To retrieve the row, export the table.",
"reason" : "apiLimitExceeded"
} ],
"message" : "API limit exceeded: Unable to return a row that exceeds the API limits. To retrieve the row, export the table."
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145) ~[com.google.api-client.google-api-client-1.21.0.jar:1.21.0]
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113) ~[com.google.api-client.google-api-client-1.21.0.jar:1.21.0]
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40) ~[com.google.api-client.google-api-client-1.21.0.jar:1.21.0]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321) ~[com.google.api-client.google-api-client-1.21.0.jar:1.21.0]
这是什么意思?我们如何解决这个错误?
【问题讨论】:
-
使用 CLI 运行 bq 查询时出现以下错误:查询操作中的 BigQuery 错误:超出 API 限制:无法返回超过 API 限制的行。要检索行,请导出表。 bq --location=US query --destination_table dataset.table --replace --use_legacy_sql=false --allow_large_results --service_account_credential_file xxx.json --project_id yyyy '
' 但是,对于同一个 SQL 语句,我可以让它在Web界面中运行。有什么办法可以在 CLI 中解决这个错误?
标签: google-bigquery