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.

createQueryStream should not error when called with pageToken instead of query #312

@jkwlui

Description

@jkwlui

From reported issue #303.

Current code after the change in #120 is unable to paginate to the next page since createQueryJob expects Query object to be a string or { query: string }.

createQueryJob(opts: Query|string, callback?: JobCallback):
void|Promise<JobResponse> {
const options = typeof opts === 'object' ? opts : {query: opts};
if (!options || !options.query) {
throw new Error('A SQL query string is required.');
}

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: bigqueryIssues related to the googleapis/nodejs-bigquery API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to 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