Skip to content

[Question] why need this sort in Sort.rs #2557

@Ted-Jiang

Description

@Ted-Jiang

@yjshen , Sorry for bothering you, Why need positions.sort_unstable() below
https://github.com/apache/arrow-datafusion/blob/807b7a5f7eb858e9f7162e1f00ffeeedd0bf2050/datafusion/core/src/physical_plan/sorts/sort.rs#L460-L469

I think we should keep the order of the adding index in positions , so we can keep the order from indices , the result has correctly order.
https://github.com/apache/arrow-datafusion/blob/807b7a5f7eb858e9f7162e1f00ffeeedd0bf2050/datafusion/core/src/physical_plan/sorts/sort.rs#L433-L435

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions