Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Job.isDone() uses Job.Status.State if available #3673

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nbali
Copy link

@nbali nbali commented Feb 12, 2025

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #3672 ☕️

If you write sample code, please follow the samples format.

…ob.isDone() calls first to avoid remote calls
@nbali nbali requested a review from a team as a code owner February 12, 2025 13:50
@nbali nbali requested a review from Linchin February 12, 2025 13:50
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/java-bigquery API. labels Feb 12, 2025
@PhongChuong
Copy link
Contributor

Thanks for the issue/fix.
PR looks good pending the merge tests.

@PhongChuong PhongChuong self-requested a review February 13, 2025 15:48
@PhongChuong PhongChuong changed the title #3672 Using in-memory Job.Status.State - if present - for Job.isDone() calls first to avoid remote calls fix: Job.isDone() uses Job.Status.State if available Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/java-bigquery API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potentially unnecessary bigquery.getJob() calls in Job.isDone()
2 participants