BigQuery Client.Query() errors for long-running queries
magnalite opened this issue · 3 comments
magnalite commented
If you use Client.Query(...)
for a query which can take a while (>~10 seconds), BigQuery will respond with:
{
"kind": "bigquery#queryResponse",
"jobReference": {
"projectId": "...",
"jobId": "...",
"location": "US"
},
"jobComplete": false
}
Currently it is expected this is a google_cloud_bigquery::http::job::query::QueryResponse
but it fails to parse due to not containing every field expected and there is also no retry logic to recheck and await job completion.
yoshidan commented
Thank you for your report. I will fix it soon.
yoshidan commented
I have fixed and published as v0.1.1. Please try it.
magnalite commented
This appears to work for me now! Thanks for fixing this so fast! Your gcp libraries are awesome.