我正在尝试使用 StreaminginsertAll
方法在 BigQuery 中插入 38000 条记录。
但首先我收到错误:
Insert operation not performed
com.google.cloud.bigquery.BigQueryException: Read timed out
然后将超时时间增加为:
RetrySettings retrySetting = RetrySettings.newBuilder().setTotalTimeout(Duration.ofMinutes(90))
.build();
BigQueryOptions bigqueryOptions = BigQueryOptions.newBuilder()
.setRetrySettings(retrySetting).build();
BigQuery bigquery = bigqueryOptions.getDefaultInstance().getService();
...我收到另一个错误:
Insert operation not performed
com.google.cloud.bigquery.BigQueryException: Connection reset
请帮忙,如何在 BigQuery 中插入所有记录?