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

Method EvaluateExpr

src/backend/gpopt/gpdbwrappers.cpp:2216–2226  ·  view source on GitHub ↗

Evaluates 'expr' and returns the result as an Expr. Caller keeps ownership of 'expr' and takes ownership of the result

Source from the content-addressed store, hash-verified

2214// Evaluates 'expr' and returns the result as an Expr.
2215// Caller keeps ownership of 'expr' and takes ownership of the result
2216Expr *
2217gpdb::EvaluateExpr(Expr *expr, Oid result_type, int32 typmod)
2218{
2219 GP_WRAP_START;
2220 {
2221 // GPDB_91_MERGE_FIXME: collation
2222 return evaluate_expr(expr, result_type, typmod, InvalidOid);
2223 }
2224 GP_WRAP_END;
2225 return nullptr;
2226}
2227
2228char *
2229gpdb::DefGetString(DefElem *defelem)

Callers

nothing calls this directly

Calls 1

evaluate_exprFunction · 0.85

Tested by

no test coverage detected