googleapis / java-bigquery

Apache License 2.0
110 stars 119 forks source link

feat: Add ability to specify RetryOptions and BigQueryRetryConfig when create job and waitFor #3398

Closed PhongChuong closed 3 months ago

PhongChuong commented 3 months ago

Add ability to specify RetryOptions and BigQueryRetryConfig when creating jobs. The RetryOptions and BigQueryRetryConfig are embedded in JobOptions so the BigQuery API interface does not change. This can be extended to other options such as DatasetListOption, DatasetOption, etc. Those options will be added in a future PR as needed.

In addition: This PR also overloads the job.waitFor() method to allow users to specify BigQueryRetryConfig. This PR also has a minor refactor to JobTest.java.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

Fixes #3399 ☕️

PhongChuong commented 3 months ago

Thanks for the review.