Repository navigation
Commit d97cd36
docs: document reassign-to-persist contract on AggregateFunction.update
State is persisted only for groups whose dict entry was *assigned* during
update() (plus groups carried from a prior batch). An in-place mutation of a
group first seen in the current batch is silently dropped, so finalize() sees
only initial_state() — every result NULL for single-group/single-batch
aggregates. Spell out the immutable-reassign idiom with do/don't examples.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f6b65aa commit d97cd36
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
340 | 356 | | |
341 | 357 | | |
342 | 358 | | |
| |||
0 commit comments