MCPcopy Create free account
hub / github.com/apache/cloudberry / expression_planner

Function expression_planner

src/backend/optimizer/plan/planner.c:6747–6762  ·  view source on GitHub ↗

* expression_planner * Perform planner's transformations on a standalone expression. * * Various utility commands need to evaluate expressions that are not part * of a plannable query. They can do so using the executor's regular * expression-execution machinery, but first the expression has to be fed * through here to transform it from parser output to something executable. * * Currently

Source from the content-addressed store, hash-verified

6745 * context; beware that this can leak a lot of additional stuff there, too.
6746 */
6747Expr *
6748expression_planner(Expr *expr)
6749{
6750 Node *result;
6751
6752 /*
6753 * Convert named-argument function calls, insert default arguments and
6754 * simplify constant subexprs
6755 */
6756 result = eval_const_expressions(NULL, (Node *) expr);
6757
6758 /* Fill in opfuncid values if missing */
6759 fix_opfuncids(result);
6760
6761 return (Expr *) result;
6762}
6763
6764/*
6765 * expression_planner_with_deps

Callers 14

load_domaintype_infoFunction · 0.85
get_rule_sortgroupclauseFunction · 0.85
CheckMutabilityFunction · 0.85
BeginCopyFromFunction · 0.85
ATExecAddColumnFunction · 0.85
ATPrepAlterColumnTypeFunction · 0.85
ComputePartitionAttrsFunction · 0.85
slot_fill_defaultsFunction · 0.85
ExecPrepareExprFunction · 0.85
ExecPrepareQualFunction · 0.85
ExecPrepareCheckFunction · 0.85

Calls 2

eval_const_expressionsFunction · 0.85
fix_opfuncidsFunction · 0.85

Tested by

no test coverage detected