Repository navigation
Commit 591b132
BufferedFinalizeState: emit one batch per produce() tick
OutputCollector enforces "one data batch per call" — emitting a list
in a loop tripped the assertion at scale (any input that yielded >1
output batch would crash mid-stream). Switch to limit=1 in
state_log_scan and emit exactly one batch per produce() call; the
framework loops the ticks until out.finish() fires on EOS.
Drops the unused _FINALIZE_PREFETCH constant from worker.py.
Repro before this fix: SELECT count(*) FROM buffer_input((SELECT range
FROM range(100000))) — RuntimeError "Only one data batch may be
emitted per call". After: returns 100000.
All 27 buffered_table integration tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 98e9c33 commit 591b132
2 files changed
Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
1229 | | - | |
1230 | 1229 | | |
1231 | 1230 | | |
1232 | 1231 | | |
| |||
1235 | 1234 | | |
1236 | 1235 | | |
1237 | 1236 | | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
1238 | 1240 | | |
1239 | | - | |
| 1241 | + | |
1240 | 1242 | | |
1241 | 1243 | | |
1242 | 1244 | | |
1243 | 1245 | | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1247 | 1249 | | |
1248 | 1250 | | |
1249 | 1251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | 452 | | |
459 | 453 | | |
460 | 454 | | |
| |||
0 commit comments