Commit 182e5bd
authored
Allow fetching more than the first page when max_results is set. (#3845)
* BigQuery: reproduce error fetching multiple results with DB-API.
Add a system test to call `fetchall()` when multiple rows are expected.
* BigQuery: system test to reproduce error of only fetching first page.
This error applies to all BigQuery iterators, not just DB-API.
* BigQuery: allow arraysize to be set after execute()
It was allowed before, but it didn't result in the correct behavior.
* max_results in BigQuery API had a different meaning from HTTPIterator.
In BigQuery it means the page size, but the HTTPIterator it meant "don't
fetch any more pages once you have these many rows."
* Fix lint errors1 parent f2aa180 commit 182e5bd
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
| 279 | + | |
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
| |||
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
286 | | - | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
292 | | - | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| 303 | + | |
301 | 304 | | |
302 | 305 | | |
303 | 306 | | |
| |||
327 | 330 | | |
328 | 331 | | |
329 | 332 | | |
330 | | - | |
| 333 | + | |
331 | 334 | | |
332 | 335 | | |
333 | 336 | | |
| |||
0 commit comments