diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 5e7dc1dfc66a2d1c89d34cbed87bcb3661d3c4fa..873e8f81332363db17d756c47fdc4ea6007352d8 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -4607,7 +4607,7 @@ SOperatorInfo *createMultiwaySortOperatorInfo(SQueryRuntimeEnv *pRuntimeEnv, SEx len += pExpr[i].base.colBytes; } - int32_t numOfCols = (pInfo->orderColumnList != NULL)? taosArrayGetSize(pInfo->orderColumnList):0; + int32_t numOfCols = (pInfo->orderColumnList != NULL)? (int32_t) taosArrayGetSize(pInfo->orderColumnList):0; pInfo->prevRow = calloc(1, (POINTER_BYTES * numOfCols + len)); int32_t offset = POINTER_BYTES * numOfCols;