errsim to check the compare method for std::sort

This commit is contained in:
tushicheng
2024-06-24 07:58:04 +00:00
committed by ob-robot
parent 5f52ab8cbb
commit b7f4eb6aa2
166 changed files with 473 additions and 392 deletions

View File

@ -154,7 +154,7 @@ int ObWindowFunctionSpec::rd_generate_patch(ObRDWFPieceMsgCtx &ctx) const
{
int ret = OB_SUCCESS;
// sort by (PBY, OBY, SQC_ID, THREAD_ID)
std::sort(ctx.infos_.begin(), ctx.infos_.end(),
lib::ob_sort(ctx.infos_.begin(), ctx.infos_.end(),
[&](ObRDWFPartialInfo *l, ObRDWFPartialInfo *r) {
int cmp = 0;
(void)rd_pby_oby_cmp(l->first_row_, r->first_row_, cmp);