Skip to content

BigQuery's QueryResultsOption.maxWaitTime Not Respected #2543

Description

@dclements

I may be missing something very simple, but the QueryResultsOption.maxWaitTime does not appear to be followed.

Version: 0.26.0-beta.

Code sample below:

bigquery.query(
            queryRequest,
            JobId.of(),
            QueryOption.of(QueryResultsOption.pageSize(1000L)),
            QueryOption.of(
              QueryResultsOption.maxWaitTime(
                1000L
              )
            )
          )

This is based on the example from: https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-bigquery

I expected this to block for 1 s and then return, regardless of whether it has completed, and then return (possibly with response.jobCompleted returning false).

When I run a query that lasts 15 seconds, it will block for all 15 seconds, however, the full time of the query (until jobCompleted is true). No matter what I set the value of maxWaitTime to, it never seems to return before jobCompleted returns true.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions