diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 82e0a8dcd6355b9e859d986de4d02c45e891b298..da346a23b66f12eebe8460dc269fb6a603dfb8a7 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -289,11 +289,6 @@ static int compareRowData(const void *a, const void *b, const void *userData) { } static void sortGroupResByOrderList(SGroupResInfo *pGroupResInfo, SQueryRuntimeEnv *pRuntimeEnv, SSDataBlock* pDataBlock, SQLFunctionCtx *pCtx) { - // orderColId is 0 order by ts - if (pRuntimeEnv->pQueryAttr->order.orderColId <= 0){ - return; - } - // first groupby column is sort column SColIndex* pFirstGroupCol = taosArrayGet(pRuntimeEnv->pQueryAttr->pGroupbyExpr->columnInfo, 0); if (pFirstGroupCol == NULL) {