pub fn plan_result_columns(plan: &PhysicalPlan) -> Vec<String>Expand description
Result column names derived from the compiled plan.
Walks the plan from root looking for the topmost projection-shaped
node (Projection, HashAggregation). Other operators that wrap a
projection (Limit, Sort, PathBuild, OptionalMatch, Filter, Unwind,
Create/Merge/Set/Delete/Remove) defer to their input. Returns an
empty Vec for plans that have no named output (e.g. a bare
scan-only plan), preserving the previous “infer from first row”
behaviour for those cases.