未验证 提交 1edee1df 编写于 作者: A Alex Duan 提交者: GitHub

Merge pull request #16140 from taosdata/FIX/TS-1777-2.4

fix(query): check the upper boundary of startPos in hashIntervalAgg
......@@ -1541,7 +1541,7 @@ static void hashIntervalAgg(SOperatorInfo* pOperatorInfo, SResultRowInfo* pResul
while (1) {
int32_t prevEndPos = (forwardStep - 1) * step + startPos;
startPos = getNextQualifiedWindow(pQueryAttr, &nextWin, &pSDataBlock->info, tsCols, binarySearchForKey, prevEndPos);
if (startPos < 0) {
if (startPos < 0 || startPos >= pSDataBlock->info.rows) {
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册