public Value<BigQueryLoadJobReference> run(BigQueryLoadJobReference pollResult,
Integer numRetries) throws Exception {
Job pollJob = BigQueryLoadGoogleCloudStorageFilesJob.getBigquery().jobs()
.get(pollResult.getJobReference().getProjectId(), pollResult.getJobReference().getJobId())
.execute();
ErrorProto fatalError = pollJob.getStatus().getErrorResult();
List<ErrorProto> errors = pollJob.getStatus().getErrors();
if (fatalError != null) {
log.severe("Job failed while writing to Bigquery. Retrying...#attempt " + numRetries
+ " Error details : " + fatalError.getReason() + ": " + fatalError.getMessage() + " at "
+ fatalError.getLocation());
return futureCall(new BigQueryLoadFileSetJob(dataset, tableName, projectId, bundle, schema),
immediate(++numRetries));
}
if (errors != null) {
log.log(Level.SEVERE, "Bigquery load job for files " + bundle