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

Function make_agg_arg

src/backend/parser/parse_agg.c:2227–2239  ·  view source on GitHub ↗

* Convenience function to build dummy argument expressions for aggregates. * * We really only care that an aggregate support function can discover its * actual argument types at runtime using get_fn_expr_argtype(), so it's okay * to use Param nodes that don't correspond to any real Param. */

Source from the content-addressed store, hash-verified

2225 * to use Param nodes that don't correspond to any real Param.
2226 */
2227static Node *
2228make_agg_arg(Oid argtype, Oid argcollation)
2229{
2230 Param *argp = makeNode(Param);
2231
2232 argp->paramkind = PARAM_EXEC;
2233 argp->paramid = -1;
2234 argp->paramtype = argtype;
2235 argp->paramtypmod = -1;
2236 argp->paramcollid = argcollation;
2237 argp->location = -1;
2238 return (Node *) argp;
2239}

Calls

no outgoing calls

Tested by

no test coverage detected