提交 dff67958 编写于 作者: wmmhello's avatar wmmhello

[TD-6046]<fix> fix ts derivative error

上级 43a6843d
...@@ -3657,14 +3657,17 @@ void copyTsColoum(SSDataBlock* pRes, SQLFunctionCtx* pCtx, int32_t numOfOutput) ...@@ -3657,14 +3657,17 @@ void copyTsColoum(SSDataBlock* pRes, SQLFunctionCtx* pCtx, int32_t numOfOutput)
tsNum++; tsNum++;
} }
} }
if (!needCopyTs) return; if (!needCopyTs) return;
if (tsNum < 2) return; if (tsNum < 2) return;
if (src == NULL) return; if (src == NULL) return;
for (int32_t col = 0; col < numOfOutput; ++col) { for (int32_t i = 0; i < numOfOutput; i++) {
SColumnInfoData* pColRes = taosArrayGet(pRes->pDataBlock, col); int32_t functionId = pCtx[i].functionId;
memcpy(pColRes->pData, src, pColRes->info.bytes * pRes->info.rows); if(functionId == TSDB_FUNC_TS_DUMMY) {
SColumnInfoData* pColRes = taosArrayGet(pRes->pDataBlock, i);
memcpy(pColRes->pData, src, pColRes->info.bytes * pRes->info.rows);
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册