diff --git a/source/libs/scalar/src/scalar.c b/source/libs/scalar/src/scalar.c index 7c59c70f30a5dd7420574500e8abcfb2ac4e8b9f..70d1bb2685024e31f2c561846154d05fdac76d74 100644 --- a/source/libs/scalar/src/scalar.c +++ b/source/libs/scalar/src/scalar.c @@ -1085,7 +1085,8 @@ EDealRes sclRewriteNonConstOperator(SNode **pNode, SScalarCtx *ctx) { EDealRes sclRewriteFunction(SNode **pNode, SScalarCtx *ctx) { SFunctionNode *node = (SFunctionNode *)*pNode; SNode *tnode = NULL; - if (!fmIsScalarFunc(node->funcId) && (!ctx->dual)) { + if ((!fmIsScalarFunc(node->funcId) && (!ctx->dual)) || + fmIsUserDefinedFunc(node->funcId)) { return DEAL_RES_CONTINUE; }