analyze_immediate_sort_removal

Function analyze_immediate_sort_removal 

Source
fn analyze_immediate_sort_removal(
    node: PlanWithCorrespondingSort,
) -> Result<Transformed<PlanWithCorrespondingSort>>
Expand description

Analyzes if there are any immediate sort removals by checking the SortExecs and their ordering requirement satisfactions with children If the sort is unnecessary, either replaces it with SortPreservingMergeExec/LimitExec or removes the SortExec. Otherwise, returns the original plan