Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

ReadClient throws on null values #518

@kitsunde

Description

@kitsunde

https://github.com/googleapis/nodejs-bigquery-storage/blob/main/src/reader/arrow_transform.ts#L146 this can be null and null is an object, which causes nullable fields to throw. For example in this case:

fieldData.toString();
>>> {"column_name": null}

Then it gets passed to https://github.com/googleapis/nodejs-bigquery-storage/blob/main/src/reader/arrow_transform.ts#L159 and enter the object path because typeof null === 'object' is true then break on Object.keys(null) in https://github.com/googleapis/nodejs-bigquery-storage/blob/main/src/reader/arrow_transform.ts#L168

TypeError: Cannot convert undefined or null to object

Metadata

Metadata

Assignees

Labels

api: bigquerystorageIssues related to the googleapis/nodejs-bigquery-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions