enable select agg function without from clause
This commit is contained in:
parent
14ae310fea
commit
a5a3b96e58
|
@ -700,7 +700,7 @@ EDealRes sclRewriteNonConstOperator(SNode** pNode, SScalarCtx *ctx) {
|
||||||
EDealRes sclRewriteFunction(SNode** pNode, SScalarCtx *ctx) {
|
EDealRes sclRewriteFunction(SNode** pNode, SScalarCtx *ctx) {
|
||||||
SFunctionNode *node = (SFunctionNode *)*pNode;
|
SFunctionNode *node = (SFunctionNode *)*pNode;
|
||||||
SNode* tnode = NULL;
|
SNode* tnode = NULL;
|
||||||
if (!fmIsScalarFunc(node->funcId)) {
|
if (!fmIsScalarFunc(node->funcId) && (!ctx->dual)) {
|
||||||
return DEAL_RES_CONTINUE;
|
return DEAL_RES_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue