Support bound struct parameters with explicit types in db api interface #717
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
dbapi
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Allow passing struct data to queries if explicit type information is provided in the placeholder.
For example, given a table created with:
You can insert data with:
passing a value like:
We have to pass the type explicitly because struct data are dictionaries and may not preserve ordering reliably.
Even though, dictionaries are now ordered, the ordering is likely to be fragile.
¯_(ツ)_/¯
The text was updated successfully, but these errors were encountered: