JSON not a valid type for parameterized query #1320
Labels
api: bigquery
Issues related to the googleapis/nodejs-bigquery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Summary
When using parameterized queries with
NULLABLE
values one has to provide thetypes
field in case a parameter is null.The check
getTypeDescriptorFromProvidedType_
fails withInvalid type provided: "JSON"
.Stacktrace
Looking at the sourcecode it looks like the type
JSON
was not implemented.nodejs-bigquery/src/bigquery.ts
Lines 989 to 1008 in 4ebe5da
even though it should have been according to the comment
where it actually can be found:
nodejs-bigquery/src/types.d.ts
Lines 3592 to 3611 in 4ebe5da
Steps to reproduce
Run a parameterized query with a column of datatype JSON/NULLABLE
Environment
Sidenote: Same is true for the new datatype
RANGE
The text was updated successfully, but these errors were encountered: