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

Function get_sortgroupclause_expr

src/backend/optimizer/util/tlist.c:520–526  ·  view source on GitHub ↗

* get_sortgroupclause_expr * Find the targetlist entry matching the given SortGroupClause * by ressortgroupref, and return its expression. */

Source from the content-addressed store, hash-verified

518 * by ressortgroupref, and return its expression.
519 */
520Node *
521get_sortgroupclause_expr(SortGroupClause *sgClause, List *targetList)
522{
523 TargetEntry *tle = get_sortgroupclause_tle(sgClause, targetList);
524
525 return (Node *) tle->expr;
526}
527
528/*
529 * get_sortgrouplist_exprs

Calls 1

get_sortgroupclause_tleFunction · 0.85

Tested by

no test coverage detected