-
Notifications
You must be signed in to change notification settings - Fork 1.1k
BigQuery's QueryResultsOption.maxWaitTime Not Respected #2543
Description
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.