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

Commit 754b589

Browse files
authored
Iterating over mutli-page job results failed (#145)
scrollToken -> pageCursor
1 parent b56308e commit 754b589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pan_cortex_data_lake/query.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def iter_job_results(
242242
if not r.ok:
243243
raise HTTPError("%s" % r.text)
244244
if r.json()["state"] == "DONE":
245-
scroll_token = r.json()["page"].get("scrollToken")
246-
if scroll_token is not None:
247-
params["pageCursor"] = scroll_token
245+
page_cursor = r.json()["page"].get("pageCursor")
246+
if page_cursor is not None:
247+
params["pageCursor"] = page_cursor
248248
yield r
249249
else:
250250
yield r

0 commit comments

Comments
 (0)