fix(query): set correct tsrow index.

This commit is contained in:
Haojun Liao 2022-12-02 18:16:12 +08:00
parent b2fd1ff880
commit 8152541998
1 changed files with 2 additions and 2 deletions

View File

@ -3373,13 +3373,13 @@ int32_t doMergeMemTableMultiRows(TSDBROW* pRow, uint64_t uid, SIterInfo* pIter,
} else { // has next point in mem/imem
pNextRow = getValidMemRow(pIter, pDelList, pReader);
if (pNextRow == NULL) {
*pResRow = *pRow;
*pResRow = current;
*freeTSRow = false;
return TSDB_CODE_SUCCESS;
}
if (TSDBROW_TS(&current) != TSDBROW_TS(pNextRow)) {
*pResRow = *pRow;
*pResRow = current;
*freeTSRow = false;
return TSDB_CODE_SUCCESS;
}