提交 efc04a24 编写于 作者: S shenglian zhou

fix inputBytes error when copy samples after merge

上级 e6e6ecb0
......@@ -4710,7 +4710,7 @@ static void copySampleFuncRes(SQLFunctionCtx *pCtx, int32_t type) {
TSKEY* pTimestamp = pCtx->ptsOutputBuf;
char* pOutput = pCtx->pOutput;
for (int32_t i = 0; i < pRes->numSampled; ++i) {
assignVal(pOutput, pRes->values + i*pCtx->inputBytes, pRes->colBytes, type);
assignVal(pOutput, pRes->values + i*pRes->colBytes, pRes->colBytes, type);
*pTimestamp = *(pRes->timeStamps + i);
pOutput += pCtx->outputBytes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册