-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
I recently documented how to use query parameters in BigQuery
https://cloud.google.com/bigquery/querying-data#bigquery-query-params-arrays-api
I found a problem with how the query parameters are supported in the client library. It does not set the type to ARRAY.
Also arrayType and arrayValues need to be in objects themselves. This is because arrays can also contain STRUCTs (but not other ARRAYs). Handing structs in arrays should maybe be a separate issue, though.
I was able to fix this for scalar types in tswast@909cf52 but tests need to be updated, plus we should have integration tests.
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.