yoshidan / google-cloud-rust

Google Cloud Client Libraries for Rust.
MIT License
243 stars 87 forks source link

BigQuery Client.Query() errors for long-running queries #174

Closed magnalite closed 1 year ago

magnalite commented 1 year ago

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 1 year ago

Thank you for your report. I will fix it soon.

yoshidan commented 1 year ago

I have fixed and published as v0.1.1. Please try it.

magnalite commented 1 year ago

This appears to work for me now! Thanks for fixing this so fast! Your gcp libraries are awesome.