Commit 501e993
committed
Refactor: Use generator for request creation and block on send
- Changed `generate_write_requests` to be a generator, yielding requests
instead of returning a list.
- Made `stream.send()` calls blocking by calling `future.result()` immediately,
ensuring requests are sent sequentially.1 parent 610f38e commit 501e993
File tree
1 file changed
+4
-10
lines changed- packages/google-cloud-bigquery-storage/samples/pyarrow
1 file changed
+4
-10
lines changedLines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | | - | |
| 216 | + | |
219 | 217 | | |
220 | 218 | | |
221 | 219 | | |
| |||
228 | 226 | | |
229 | 227 | | |
230 | 228 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 229 | + | |
235 | 230 | | |
236 | 231 | | |
237 | 232 | | |
| |||
272 | 267 | | |
273 | 268 | | |
274 | 269 | | |
275 | | - | |
276 | | - | |
277 | | - | |
| 270 | + | |
| 271 | + | |
278 | 272 | | |
279 | 273 | | |
0 commit comments