lquerel / gcp-bigquery-client

GCP BigQuery Client (Rust)
Apache License 2.0
92 stars 60 forks source link

Project model (numeric_id) is incorrect. #34

Closed kiibo382 closed 1 year ago

kiibo382 commented 1 year ago

I ran the following code.

client
    .project()
    .list(GetOptions::default().max_results(10))
    .await?
    .projects

However, an error occurred as follows.

Error: RequestError(reqwest::Error { kind: Decode, source: Error("invalid type: string \"88888\", expected u64", line: 8, column: 33) })

Perhaps the type of numeric_id is incorrect.

Therefore, It is necessary to change from u64 to String.

kiibo382 commented 1 year ago

I also referred to this.

https://cloud.google.com/bigquery/docs/reference/rest/v2/projects/list#response-body