Панель управления не показывает ошибок. Ни одна из квот не отображается как превышенная. Я не получаю никаких исключений, и response.getInsertErrors() всегда имеет значение null. Кажется, проблема возникает при интенсивной записи. Они объединены в пакеты.
Я использую эту библиотеку (пробовал последнюю версию, проблема все еще существует):
Код: Выделить всё
com.google.cloud
google-cloud-bigquery
2.28.0
Код: Выделить всё
GoogleCredential credential = new GoogleCredential.Builder().setTransport(new NetHttpTransport())
.setJsonFactory(new JacksonFactory())
.setClientSecrets("clientId", "clientSecret")
.build()
.setFromTokenResponse(new TokenResponse().setRefreshToken("refreshtoken");
Bigquery bigquery = new Bigquery.Builder(new NetHttpTransport(), new JacksonFactory(), credential)
.setApplicationName("name").build();
List rowList = new ArrayList();
TableRow rowWrapper = new TableRow();
rowWrapper.set("date", item.GetDate());
rowWrapper.set("value", item.GetValue());
TableDataInsertAllRequest.Rows insertRowRequest = new TableDataInsertAllRequest.Rows();
rowList.add(insertRowRequest);
TableDataInsertAllRequest content = new TableDataInsertAllRequest().setRows(rowList);
InsertAll op = bigquery.tabledata().insertAll("project", "dataset", "table", content);
TableDataInsertAllResponse response = op.execute();
if (response.getInsertErrors() == null)
{
; // all good
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... -in-tables
Мобильная версия