Commit 34704c3
committed
Make total_rows available on RowIterator before iteration
After running a query, the total number of rows is available from the
call to the getQueryResults API. This commit plumbs the total rows
through to the faux Table created in QueryJob.results and then on
through to the RowIterator created by list_rows.
Also, call get_table in list_rows... TODO: split that out to a separate
PR1 parent 1c2cee7 commit 34704c3
File tree
6 files changed
+102
-56
lines changed- bigquery
- docs
- google/cloud/bigquery
- tests/unit
6 files changed
+102
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2246 | 2246 | | |
2247 | 2247 | | |
2248 | 2248 | | |
2249 | | - | |
2250 | | - | |
| 2249 | + | |
2251 | 2250 | | |
2252 | 2251 | | |
2253 | 2252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2808 | 2808 | | |
2809 | 2809 | | |
2810 | 2810 | | |
| 2811 | + | |
2811 | 2812 | | |
2812 | 2813 | | |
2813 | 2814 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
| 1303 | + | |
1303 | 1304 | | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
1304 | 1308 | | |
1305 | 1309 | | |
1306 | 1310 | | |
| |||
1422 | 1426 | | |
1423 | 1427 | | |
1424 | 1428 | | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
| 1429 | + | |
1428 | 1430 | | |
1429 | 1431 | | |
1430 | 1432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4115 | 4115 | | |
4116 | 4116 | | |
4117 | 4117 | | |
4118 | | - | |
4119 | | - | |
4120 | | - | |
4121 | | - | |
4122 | | - | |
4123 | | - | |
4124 | | - | |
4125 | | - | |
4126 | | - | |
4127 | | - | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
4128 | 4126 | | |
4129 | | - | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
4130 | 4133 | | |
4131 | 4134 | | |
4132 | 4135 | | |
| |||
4329 | 4332 | | |
4330 | 4333 | | |
4331 | 4334 | | |
4332 | | - | |
| 4335 | + | |
4333 | 4336 | | |
4334 | 4337 | | |
4335 | 4338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4008 | 4008 | | |
4009 | 4009 | | |
4010 | 4010 | | |
| 4011 | + | |
| 4012 | + | |
4011 | 4013 | | |
4012 | 4014 | | |
4013 | 4015 | | |
4014 | 4016 | | |
| 4017 | + | |
4015 | 4018 | | |
4016 | | - | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
| 4022 | + | |
| 4023 | + | |
| 4024 | + | |
4017 | 4025 | | |
4018 | 4026 | | |
4019 | 4027 | | |
4020 | 4028 | | |
4021 | 4029 | | |
4022 | 4030 | | |
4023 | | - | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
4024 | 4038 | | |
4025 | 4039 | | |
| 4040 | + | |
| 4041 | + | |
4026 | 4042 | | |
4027 | 4043 | | |
4028 | 4044 | | |
| |||
4036 | 4052 | | |
4037 | 4053 | | |
4038 | 4054 | | |
| 4055 | + | |
4039 | 4056 | | |
4040 | 4057 | | |
4041 | 4058 | | |
| |||
0 commit comments