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(bigquery): respect context during query execution #7693

Merged
merged 5 commits into from
Apr 5, 2023

Conversation

shollyman
Copy link
Contributor

@shollyman shollyman commented Apr 5, 2023

This PR updates query polling and insertion to better respect context status. Key change is to push context to the discovery library, but there are some small refactors to make use of context passing more consistent at various callsites.

Fixes: #7604

This PR updates query polling and insertion to better respect
context status.  Fast path query insertion involves an RPC that
allows server-side polling before returning, and waiting for
jobs/queries is inherently something that can take extended
time and should respect context.

Fixes: googleapis#7604
@shollyman shollyman requested review from a team as code owners April 5, 2023 00:02
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the BigQuery API. labels Apr 5, 2023
@shollyman shollyman requested review from codyoss and removed request for chalmerlowe April 5, 2023 00:14
bigquery/bigquery.go Outdated Show resolved Hide resolved
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels Apr 5, 2023
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shollyman shollyman added the automerge Merge the pull request once unit tests and other checks pass. label Apr 5, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit 56772f5 into googleapis:main Apr 5, 2023
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 5, 2023
@shollyman shollyman deleted the job-context-expiry branch April 5, 2023 21:52
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 BigQuery API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bigquery: Timeout not working
2 participants