fn build_inner_segment(
node: &NativeNode,
bare_scans: &[LogicalPlan],
per_source: &[(Option<Arc<str>>, String, Vec<String>)],
grid: &Arc<EvalGrid>,
output_tags_of: OutputTags,
) -> Option<(LogicalPlan, Vec<String>)>Expand description
Builds one segment’s plan from a subtree, binding its scan inputs without cutting again.
Returns the plan and the output columns the segment reports, which its parent names its own
columns by. None when any part cannot be built, so the statement keeps the plan it had.