提交 a281da13 编写于 作者: G Ganlin Zhao

fix(query): fix tail function points larger than total rows issue

上级 21b5f723
......@@ -3236,6 +3236,7 @@ int32_t tailFunction(SqlFunctionCtx* pCtx) {
SColumnInfoData* pOutput = (SColumnInfoData*)pCtx->pOutput;
int32_t startOffset = pCtx->offset;
pInfo->numOfPoints = MIN(pInfo->numOfPoints, pInput->numOfRows);
for (int32_t i = pInput->startRowIndex; i < pInput->numOfRows + pInput->startRowIndex; i += 1) {
char* data = colDataGetData(pInputCol, i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册