From b2975b7c4d4dac617f270c3940e86c6f24af8e6e Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sun, 27 Jun 2021 05:04:33 +0800 Subject: [PATCH] [TD-4825] order by col after group-by --- src/query/src/qExecutor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index c0fe7b128a..aa5ce4fa57 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -264,7 +264,8 @@ static void sortGroupResByOrderList(SGroupResInfo *pGroupResInfo, SQueryRuntimeE SRowCompSupporter support = {.pRuntimeEnv = pRuntimeEnv, .dataOffset = dataOffset, .comFunc = getComparFunc(type, 0)}; - return taosArraySortPWithExt(pGroupResInfo->pRows, compareRowData, &support); + taosArraySortPWithExt(pGroupResInfo->pRows, compareRowData, &support); + return; } //setup the output buffer for each operator