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

Commit b56308e

Browse files
authored
'records' in query service stats is wrong (#146)
It uses the `rowsInJob` instead of `rowsInPage` inside `get_job_results()`. `get_job_results()` only fetches a single page / cursor result, therefore the number of rows in the page must be used.
1 parent 990452e commit b56308e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pan_cortex_data_lake/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def get_job_results(
185185
)
186186
self.stats.get_job_results += 1
187187

188-
rows = r.json().get("rowsInJob")
188+
rows = r.json().get("rowsInPage")
189189
if rows is not None:
190190
self.stats.records += rows
191191

0 commit comments

Comments
 (0)