Merge pull request #26917 from taosdata/fix/TD-31001

fix: PkOrder Mem
This commit is contained in:
dapan1121 2024-08-02 10:57:24 +08:00 committed by GitHub
commit 81e88d9762
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1699,6 +1699,7 @@ static int32_t initRowIdSort(SSortHandle* pHandle) {
taosArrayDestroy(pHandle->pSortInfo);
pHandle->pSortInfo = pOrderInfoList;
pHandle->cmpParam.pPkOrder = (pHandle->bSortPk) ? taosArrayGet(pHandle->pSortInfo, 1) : NULL;
return TSDB_CODE_SUCCESS;
}