San Kumar
07/22/2025, 9:57 AMKartik Khare
07/23/2025, 5:02 AMcursor.fetchmany(batch_size) will only return the next batch_size rows from the result set. If you only call fetchmany() once you will get at most one page of results (10 k rows is the default page size if you are using the Pinot cursor API). To retrieve all rows you need to loop over fetchmany() until it returns an empty list, or just call fetchall().
Hope that helps!