From 712137ba1823db254e6ab092bed023d35fb6401a Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Tue, 1 Mar 2022 10:32:36 +0800 Subject: [PATCH] feature/qnode --- include/libs/scalar/scalar.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/libs/scalar/scalar.h b/include/libs/scalar/scalar.h index 2e876c8296..e55c0b9e76 100644 --- a/include/libs/scalar/scalar.h +++ b/include/libs/scalar/scalar.h @@ -25,9 +25,17 @@ extern "C" { typedef struct SFilterInfo SFilterInfo; - +/* +pNode will be freed in API; +*pRes need to freed in caller +*/ int32_t scalarCalculateConstants(SNode *pNode, SNode **pRes); + +/* +pDst need to freed in caller +*/ int32_t scalarCalculate(SNode *pNode, SArray *pBlockList, SScalarParam *pDst); + int32_t scalarGetOperatorParamNum(EOperatorType type); int32_t scalarGenerateSetFromList(void **data, void *pNode, uint32_t type); -- GitLab