-
Notifications
You must be signed in to change notification settings - Fork 131
Description
Is your feature request related to a problem? Please describe.
When using the com.google.cloud.bigquery.BigQueryImpl#query(com.google.cloud.bigquery.QueryJobConfiguration, com.google.cloud.bigquery.BigQuery.JobOption...) overload, the randomly generated jobId is not available to the caller. This means that, in practice, the caller can't cancel this job without using reflection.
The version of query that accepts the jobId parameter (meaning, the caller can supply it) can't use the RPC/fast path.
Describe the solution you'd like
Either the query overload accepting the jobId should allow the RPC/fast path, or else the generated jobId should be made available somehow to the caller via the TableResult (perhaps a .getJobReference method).
Describe alternatives you've considered
Using reflection to access private methods or fields that would be necessary to implement cancellation behavior on the caller side.
Additional context
We would like to be able to both cancel queries (to save user cost/resources) and use the fast RPC path.