enable select agg function without from clause

This commit is contained in:
Ganlin Zhao 2022-07-15 16:50:51 +08:00
parent 14ae310fea
commit a5a3b96e58
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ EDealRes sclRewriteNonConstOperator(SNode** pNode, SScalarCtx *ctx) {
EDealRes sclRewriteFunction(SNode** pNode, SScalarCtx *ctx) {
SFunctionNode *node = (SFunctionNode *)*pNode;
SNode* tnode = NULL;
if (!fmIsScalarFunc(node->funcId)) {
if (!fmIsScalarFunc(node->funcId) && (!ctx->dual)) {
return DEAL_RES_CONTINUE;
}