Skip to content

[Enhancement] Improve sort algorithm #12380

@Gabriel39

Description

@Gabriel39

Search before asking

  • I had searched in the issues and found no similar issues.

Description

Now in sort node, we first do partial sort to get several sorted blocks and then do merge sort to get the final result.

For partial sort, we use heap sort or pdq sort which uses a row-based comparison to sort. However, this row-based comparison is not efficient enough.

Solution

Use a column-based comparison is better, for multiple columns comparison , we do partial sort column by column

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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