I ran a SQL statement using the REST API and my Dremio server says it found 1567 rows, but the REST API only returned back 1058
I ran the following debug statements which should show overlapping results, but that isn’t the case
>>> r = requests.get(dremio_server + "/api/v3/job/" + job_id + "/results?limit=500&offset=1000", headers=headers)
>>> len(r.json()['rows'])
58
>>> r = requests.get(dremio_server + "/api/v3/job/" + job_id + "/results?limit=500&offset=1056", headers=headers)
>>> len(r.json()['rows'])
2
>>> r = requests.get(dremio_server + "/api/v3/job/" + job_id + "/results?limit=500&offset=1057", headers=headers)
>>> len(r.json()['rows'])
1
>>> r = requests.get(dremio_server + "/api/v3/job/" + job_id + "/results?limit=500&offset=1058", headers=headers)
>>>
>>> len(r.json()['rows'])
500
>>> r = requests.get(dremio_server + "/api/v3/job/" + job_id + "/results?limit=500&offset=1500", headers=headers)
>>> len(r.json()['rows'])
67
The last statement shows there are 1567 rows, but a bunch of rows got lost somehow, but can still be picked up using different offsets.