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

Commit 2b7df52

Browse files
authored
fix: Fix Job#getQueryResultsStream when using startIndex (#1100)
1 parent de34bc6 commit 2b7df52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/job.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ class Job extends Operation {
566566
);
567567
}
568568

569-
let nextQuery: {} | null = null;
569+
let nextQuery: QueryResultsOptions | null = null;
570570
if (resp.jobComplete === false) {
571571
// Query is still running.
572572
nextQuery = Object.assign({}, options);
@@ -584,6 +584,7 @@ class Job extends Operation {
584584
nextQuery = Object.assign({}, options, {
585585
pageToken: resp.pageToken,
586586
});
587+
delete nextQuery.startIndex;
587588
}
588589

589590
callback!(null, rows, nextQuery, resp);

0 commit comments

Comments
 (0)