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.
I may be missing something very simple, but the
QueryResultsOption.maxWaitTimedoes not appear to be followed.Version:
0.26.0-beta.Code sample below:
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.jobCompletedreturning 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
jobCompletedis true). No matter what I set the value ofmaxWaitTimeto, it never seems to return beforejobCompletedreturns true.