pass compilation after merging 3.0

This commit is contained in:
slzhou 2022-04-26 16:36:34 +08:00
parent 21a28306e0
commit 65598879ca
1 changed files with 4 additions and 4 deletions

View File

@ -21,6 +21,7 @@
#include "tdatablock.h" #include "tdatablock.h"
#include "querynodes.h" #include "querynodes.h"
#include "builtinsimpl.h" #include "builtinsimpl.h"
#include "functionMgt.h"
//TODO: network error processing. //TODO: network error processing.
//TODO: add unit test //TODO: add unit test
@ -1225,10 +1226,10 @@ typedef struct SUdfAggRes {
} SUdfAggRes; } SUdfAggRes;
bool udfAggGetEnv(struct SFunctionNode* pFunc, SFuncExecEnv* pEnv) { bool udfAggGetEnv(struct SFunctionNode* pFunc, SFuncExecEnv* pEnv) {
if (pFunc->udfFuncType == TSDB_FUNC_TYPE_SCALAR) { if (fmIsScalarFunc(pFunc->funcId)) {
return false; return false;
} }
pEnv->calcMemSize = sizeof(SUdfAggRes) + pFunc->node.resType.bytes + pFunc->bufSize; pEnv->calcMemSize = sizeof(SUdfAggRes) + pFunc->node.resType.bytes + pFunc->udfBufSize;
return true; return true;
} }
@ -1332,7 +1333,6 @@ int32_t udfAggFinalize(struct SqlFunctionCtx *pCtx, SSDataBlock* pBlock) {
GET_RES_INFO(pCtx)->numOfRes = 1; GET_RES_INFO(pCtx)->numOfRes = 1;
} }
functionFinalize(pCtx, pBlock); functionFinalize(pCtx, pBlock);
return 0; return 0;
} }