提交 ecf3e2c0 编写于 作者: H Haojun Liao

enh(query): optimize the perf.

上级 663138ba
......@@ -3096,9 +3096,9 @@ int32_t lastFunction(SqlFunctionCtx* pCtx) {
numOfElems++;
char* data = colDataGetData(pInputCol, i);
TSKEY cts = *(TSKEY*) colDataGetData(pInput->pPTS, i);
if (pResInfo->numOfRes == 0 || pInfo->ts < cts) {
doSaveCurrentVal(pCtx, i, cts, type, data);
TSKEY* cts = (TSKEY*) colDataGetData(pInput->pPTS, i);
if (pResInfo->numOfRes == 0 || pInfo->ts < (*cts)) {
doSaveCurrentVal(pCtx, i, *cts, type, data);
pResInfo->numOfRes = 1;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册