fix(stream): return value.

This commit is contained in:
Haojun Liao 2024-09-29 22:59:18 +08:00
parent 1e96ea4b54
commit 4173144ded
1 changed files with 4 additions and 2 deletions

View File

@ -213,8 +213,10 @@ static int32_t nextTupleWithGroupId(SSortHandle* pHandle, SSortOperatorInfo* pIn
STupleHandle* retTuple = pInfo->pGroupIdCalc->pSavedTuple;
if (!retTuple) {
code = tsortNextTuple(pHandle, &retTuple);
qError("failed to get next tuple, code:%s", tstrerror(code));
return code;
if (code) {
qError("failed to get next tuple, code:%s", tstrerror(code));
return code;
}
}
if (retTuple) {