Bug in table.getRows when using different selectedFields in consecutive calls #1430
Closed
7 tasks done
Labels
api: bigquery
Issues related to the googleapis/nodejs-bigquery API.
Please make sure you have searched for information in the following guides.
A screenshot that you have tested with "Try this API".
Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.
https://github.com/jonathan-lande-cyera/nodejs-bigquery/blob/a9b6215aecd3227e009f6808c798f4661754ab55/test/table.ts#L2193C1-L2233C8
A step-by-step description of how to reproduce the issue, based on the linked reproduction.
A clear and concise description of what the bug is, and what you expected to happen.
When calling table.getRows more than once, each time with different
selectedFields
- the method fails with:It looks like the table object's
metadata.schema.fields
is affected by the previous call to getRows and becomes an empty array on the second call, causing the method to fail.A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **
Calling
getRows
with validselectedFields
values corresponding to existing columns in the table shouldn't throw an exception.The text was updated successfully, but these errors were encountered: