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

Job#getQueryResultsStream fails when passed a startIndex #1099

@felix-d

Description

@felix-d

Environment details

  • OS:
  • Node.js version:
  • npm version:
  • @google-cloud/bigquery version: latest

Steps to reproduce

  1. Pass startIndex to Job#getQueryResultsStream
  2. First request to populate the stream is successful and starts at the correct index.
  3. Second request fails with When using a page token, you cannot specify an arbitrary startIndex

It seems this is simply because startIndex should be used on the first fetch, and then discarded once page tokens can be used for the next query.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/nodejs-bigquery 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