Files
discord9 a808cd67e5 refactor(promql): hand out no closing queue the tree cannot fill
`finish` drains the executor before it closes it, and the shell only calls
it once the root's last pull already reported no chunk. So the queue it
filled was always empty, and `closed` already carries the whole meaning:
a closed tree settles nothing more, and the executor must not be finished
twice.

Removing the queue leaves the two things that are not it. A chunk that
carries no row is a lifecycle signal the tree passes upward, and only this
plan's conversion turns it into `Ok(None)`; that path is untouched. And a
series that never closed is an error `close` reports, not a chunk anyone
collects.

The assertion states the proof rather than leaving a reader to wonder what
the discarded vector could have held. It is a `debug_assert`: a release
build must not turn a claim about unobservable state into a panic.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-21 01:44:51 +08:00
..