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

Function cdbpullup_expr

src/backend/cdb/cdbpullup.c:197–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195} /* pullUpExpr_mutator */
196
197Expr *
198cdbpullup_expr(Expr *expr, List *targetlist, List *newvarlist, Index newvarno)
199{
200 Expr *newexpr;
201 struct pullUpExpr_context ctx;
202
203 Assert(!targetlist || IsA(targetlist, List));
204 Assert(!newvarlist || list_length(newvarlist) == list_length(targetlist));
205
206 ctx.targetlist = targetlist;
207 ctx.newvarlist = newvarlist;
208 ctx.newvarno = newvarno;
209 ctx.notfound = NULL;
210
211 newexpr = (Expr *) pullUpExpr_mutator((Node *) expr, &ctx);
212
213 if (ctx.notfound)
214 newexpr = NULL;
215
216 return newexpr;
217} /* cdbpullup_expr */
218
219/*
220 * cdbpullup_findEclassInTargetList

Callers 2

convert_EXPR_to_joinFunction · 0.85
cdb_pull_up_eclassFunction · 0.85

Calls 2

list_lengthFunction · 0.85
pullUpExpr_mutatorFunction · 0.85

Tested by

no test coverage detected