fix issue
This commit is contained in:
parent
340fb3e727
commit
8a648eb56f
|
@ -144,6 +144,7 @@ void setEventOutputBuf(SStreamAggSupporter* pAggSup, TSKEY* pTs, uint64_t groupI
|
||||||
|
|
||||||
_end:
|
_end:
|
||||||
pAggSup->stateStore.streamStateCurNext(pAggSup->pState, pCur);
|
pAggSup->stateStore.streamStateCurNext(pAggSup->pState, pCur);
|
||||||
|
pNextWinKey->groupId = groupId;
|
||||||
code = pAggSup->stateStore.streamStateSessionGetKVByCur(pCur, pNextWinKey, NULL, 0);
|
code = pAggSup->stateStore.streamStateSessionGetKVByCur(pCur, pNextWinKey, NULL, 0);
|
||||||
if (code != TSDB_CODE_SUCCESS) {
|
if (code != TSDB_CODE_SUCCESS) {
|
||||||
SET_SESSION_WIN_KEY_INVALID(pNextWinKey);
|
SET_SESSION_WIN_KEY_INVALID(pNextWinKey);
|
||||||
|
@ -160,7 +161,7 @@ int32_t updateEventWindowInfo(SStreamAggSupporter* pAggSup, SEventWindowInfo* pW
|
||||||
TSKEY* pTsData, bool* starts, bool* ends, int32_t rows, int32_t start, SSHashObj* pResultRows,
|
TSKEY* pTsData, bool* starts, bool* ends, int32_t rows, int32_t start, SSHashObj* pResultRows,
|
||||||
SSHashObj* pStUpdated, SSHashObj* pStDeleted, bool* pRebuild) {
|
SSHashObj* pStUpdated, SSHashObj* pStDeleted, bool* pRebuild) {
|
||||||
*pRebuild = false;
|
*pRebuild = false;
|
||||||
if (!pWinInfo->pWinFlag->startFlag) {
|
if (!pWinInfo->pWinFlag->startFlag && !(starts[start]) ) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -303,7 +304,7 @@ static void doStreamEventAggImpl(SOperatorInfo* pOperator, SSDataBlock* pSDataBl
|
||||||
int32_t winIndex = 0;
|
int32_t winIndex = 0;
|
||||||
bool allEqual = true;
|
bool allEqual = true;
|
||||||
SEventWindowInfo curWin = {0};
|
SEventWindowInfo curWin = {0};
|
||||||
SSessionKey nextWinKey;
|
SSessionKey nextWinKey = {0};
|
||||||
setEventOutputBuf(pAggSup, tsCols, groupId, (bool*)pColStart->pData, (bool*)pColEnd->pData, i, rows, &curWin, &nextWinKey);
|
setEventOutputBuf(pAggSup, tsCols, groupId, (bool*)pColStart->pData, (bool*)pColEnd->pData, i, rows, &curWin, &nextWinKey);
|
||||||
setSessionWinOutputInfo(pSeUpdated, &curWin.winInfo);
|
setSessionWinOutputInfo(pSeUpdated, &curWin.winInfo);
|
||||||
bool rebuild = false;
|
bool rebuild = false;
|
||||||
|
|
Loading…
Reference in New Issue