We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1758a6 commit 9842f64Copy full SHA for 9842f64
warehouse/integrations/bigquery/bigquery.go
@@ -466,6 +466,11 @@ func (bq *BigQuery) jobStatistics(
466
)
467
bqJob, err := bqJobGetCall.Context(ctx).Location(job.Location()).Fields("statistics").Do()
468
if err != nil {
469
+ // In case of rate limit error, return empty statistics
470
+ var e *googleapi.Error
471
+ if errors.As(err, &e) && e.Code == 429 {
472
+ return &bqService.JobStatistics{}, nil
473
+ }
474
return nil, fmt.Errorf("getting job: %w", err)
475
}
476
return bqJob.Statistics, nil
0 commit comments