GeezerVison is showing github.com — fix(bigquery): route JOB_CREATION_REQUIRED through fast query path by jinseopkim0 · Pull Request #13437 · googleapis/google-cloud-java
Conversation
jinseopkim0
commented
Jun 11, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Routes queries under JobCreationMode.JOB_CREATION_REQUIRED to the fast query path (jobs.query API / 1 RPC) to avoid the slow fallback path (jobs.insert API / 2 RPCs).
https://docs.cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#QueryResponse says:
object (JobReference)
Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case jobs.getQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (jobs.getQueryResults).
If jobCreationMode was set to JOB_CREATION_OPTIONAL and the query completes without creating a job, this field will be empty.
Thus, routing JOB_CREATION_REQUIRED through the fast path is preferred.
b/522363981
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gemini-code-assist[bot] reacted with eyes emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request enables fast query support when the job creation mode is set to JOB_CREATION_REQUIRED in QueryRequestInfo. This allows queries with this configuration to execute via the fast query path, returning a TableResult directly (with both JobId and QueryId populated) rather than creating a separate job. Unit and integration tests have been updated to reflect and verify this behavior. I have no feedback to provide.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lqiu96
pushed a commit
that referenced
this pull request
Jun 30, 2026
…13437)
Routes queries under `JobCreationMode.JOB_CREATION_REQUIRED` to the fast
query path (`jobs.query` API / 1 RPC) to avoid the slow fallback path
(`jobs.insert` API / 2 RPCs).
https://docs.cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#QueryResponse
says:
> object
([JobReference](https://docs.cloud.google.com/bigquery/docs/reference/rest/v2/JobReference))
>
> Reference to the Job that was created to run the query. This field
will be present even if the original request timed out, in which case
jobs.getQueryResults can be used to read the results once the query has
completed. Since this API only returns the first page of results,
subsequent pages can be fetched via the same mechanism
(jobs.getQueryResults).
>
> If jobCreationMode was set to JOB_CREATION_OPTIONAL and the query
completes without creating a job, this field will be empty.
Thus, routing `JOB_CREATION_REQUIRED` through the fast path is
preferred.
b/522363981
This was referenced Jul 1, 2026
Reviewers
lqiu96
lqiu96 approved these changes
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|