Skip to main content

remove_output_sort

Function remove_output_sort 

Source
pub(super) fn remove_output_sort(plan: LogicalPlan) -> LogicalPlan
Expand description

Strips the output sort a PromQL plan ends with, keeping the plan schema intact.

Only the sort the caller would observe is removed: recursion stops at any other node, so ordering consumed by windows, limits or PromQL extension nodes stays.