fn is_regionless_fused_plan(plan: &LogicalPlan) -> boolExpand description
Whether plan is a native fused plan with no region below it.
Two shapes qualify, and both are already the finished plan: a statement that reads no data -
time(), vector(1), a label rewrite over one of them - is one node with no input at all,
and a discovered selector that matched no metric table is planned over the typed empty frame
is_empty_discovered_input
builds. Neither has a scan to ship, so neither needs the remote transport.
The route stacks its own nodes above such an input: a split aggregate runs a Final half over
the Partial half that reads it, and a segmented statement runs its parent over the segment’s
own node. So the inputs a node reads are followed through fused nodes only - never through
another extension, and never through a scan - and every leaf that is not one of them rejects
the shape.