Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-999] use TimSort for STRING/DECIMAL onekey based sorting #1017

Merged
merged 6 commits into from
Jul 15, 2022

Conversation

zhouyuan
Copy link
Collaborator

@zhouyuan zhouyuan commented Jul 7, 2022

What changes were proposed in this pull request?

This patch replace std::sort() with Timsort() on onekey string/decimal cases
Signed-off-by: Yuan Zhou [email protected]

closes: #999

How was this patch tested?

pass jenkins

@github-actions
Copy link

github-actions bot commented Jul 7, 2022

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/oap-project/native-sql-engine/issues

Then could you also rename commit message and pull request title in the following format?

[NSE-${ISSUES_ID}] ${detailed message}

See also:

std::sort is a stable sort on most times, while Timsort is not stable

this patch changes to sort unit tests to align with Timsort result

gtest repeat 1000 times seems stable

Signed-off-by: Yuan Zhou <[email protected]>
Signed-off-by: Yuan Zhou <[email protected]>
Signed-off-by: Yuan Zhou <[email protected]>
Signed-off-by: Yuan Zhou <[email protected]>
Signed-off-by: Yuan Zhou <[email protected]>
@zhouyuan zhouyuan marked this pull request as ready for review July 15, 2022 02:07
@zhouyuan zhouyuan changed the title use TimSort for STRING/DECIMAL onekey based sorting [NSE-999] use TimSort for STRING/DECIMAL onekey based sorting Jul 15, 2022
@github-actions
Copy link

#999

@zhouyuan zhouyuan merged commit d2800f0 into oap-project:main Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant