replace_with_partial_sort

Function replace_with_partial_sort 

Source
fn replace_with_partial_sort(
    plan: Arc<dyn ExecutionPlan>,
) -> Result<Arc<dyn ExecutionPlan>>
Expand description

Only interested with SortExecs and their unbounded children. If the plan is not a SortExec or its child is not unbounded, returns the original plan. Otherwise, by checking the requirement satisfaction searches for a replacement chance. If there’s one replaces the SortExec plan with a PartialSortExec