enh(query): elapsed function adoption for MIA operator
TD-17254
This commit is contained in:
parent
ec4874f6b6
commit
7f875b5120
|
@ -3879,11 +3879,13 @@ int32_t elapsedFunctionMerge(SqlFunctionCtx* pCtx) {
|
||||||
|
|
||||||
SElapsedInfo* pInfo = GET_ROWCELL_INTERBUF(GET_RES_INFO(pCtx));
|
SElapsedInfo* pInfo = GET_ROWCELL_INTERBUF(GET_RES_INFO(pCtx));
|
||||||
|
|
||||||
int32_t start = pInput->startRowIndex;
|
int32_t start = pInput->startRowIndex;
|
||||||
char* data = colDataGetData(pCol, start);
|
|
||||||
SElapsedInfo* pInputInfo = (SElapsedInfo*)varDataVal(data);
|
|
||||||
|
|
||||||
elapsedTransferInfo(pInputInfo, pInfo);
|
for(int32_t i = start; i < start + pInput->numOfRows; ++i) {
|
||||||
|
char* data = colDataGetData(pCol, i);
|
||||||
|
SElapsedInfo* pInputInfo = (SElapsedInfo*)varDataVal(data);
|
||||||
|
elapsedTransferInfo(pInputInfo, pInfo);
|
||||||
|
}
|
||||||
|
|
||||||
SET_VAL(GET_RES_INFO(pCtx), 1, 1);
|
SET_VAL(GET_RES_INFO(pCtx), 1, 1);
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue