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

Function find_base_rel

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

* find_base_rel * Find a base or other relation entry, which must already exist. */

Source from the content-addressed store, hash-verified

507 * Find a base or other relation entry, which must already exist.
508 */
509RelOptInfo *
510find_base_rel(PlannerInfo *root, int relid)
511{
512 RelOptInfo *rel;
513
514 Assert(relid > 0);
515
516 if (relid < root->simple_rel_array_size)
517 {
518 rel = root->simple_rel_array[relid];
519 if (rel)
520 return rel;
521 }
522
523 elog(ERROR, "no relation entry for relid %d", relid);
524
525 return NULL; /* keep compiler quiet */
526}
527
528/*
529 * build_join_rel_hash

Callers 15

examine_variableFunction · 0.85
examine_simple_variableFunction · 0.85
find_join_input_relFunction · 0.85
shareinput_walkerFunction · 0.85
finalize_planFunction · 0.85
set_plan_refsFunction · 0.85
add_vars_to_targetlist_xFunction · 0.85
create_lateral_join_infoFunction · 0.85
join_is_removableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected