goccy / bigquery-emulator

BigQuery emulator server implemented in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paginated results not working

man8pr opened this issue · comments

What happened?

When requesting paginated results with a QueryJob, the returned results include more than the maximum number of rows:
e.g.

var paginatedResults = queryJob.getQueryResults(QueryResultsOption.pageSize(4));

paginatedResults can include more than 4 rows with the emulator.

What did you expect to happen?

The expectations is that setting the pageSize, the returned results contains that specific maximum number of rows:

How can we reproduce it (as minimally and precisely as possible)?

By setting the pageSize in the getQueryResults method of QueryJob:

var paginatedResults = queryJob.getQueryResults(QueryResultsOption.pageSize(4));

Anything else we need to know?

No response