fix: disable sort by row id when num of tables is 1

This commit is contained in:
slzhou 2024-01-08 08:21:27 +08:00
parent 0f9be1033a
commit 7c58a9a280
1 changed files with 1 additions and 1 deletions

View File

@ -3425,7 +3425,7 @@ int32_t startDurationForGroupTableMergeScan(SOperatorInfo* pOperator) {
pInfo->sortBufSize = 2048 * pInfo->bufPageSize;
int32_t numOfBufPage = pInfo->sortBufSize / pInfo->bufPageSize;
if (pInfo->bSortRowId) {
if (pInfo->bSortRowId && numOfTable != 1) {
pInfo->pSortHandle = tsortCreateSortHandle(pInfo->pSortInfo, SORT_BLOCK_TS_MERGE, pInfo->bufPageSize, numOfBufPage,
pInfo->pSortInputBlock, pTaskInfo->id.str, 0, 0, 0);
int32_t memSize = 512 * 1024 * 1024;