Merge pull request #14971 from taosdata/feature/3_liaohj

fix(query): set correct sort buffer format
This commit is contained in:
Haojun Liao 2022-07-16 09:50:32 +08:00 committed by GitHub
commit 5fb53520d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ static int32_t createInitialSources(SSortHandle* pHandle) {
pHandle->sortElapsed += el;
// All sorted data can fit in memory, external memory sort is not needed. Return to directly
if (size <= sortBufSize) {
if (size <= sortBufSize && pHandle->pBuf == NULL) {
pHandle->cmpParam.numOfSources = 1;
pHandle->inMemSort = true;