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

Function find_grouped_rel

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

* find_grouped_rel * Returns grouped relation entry corresponding to 'relids' (a set of RT * indexes), or NULL if none exists. */

Source from the content-addressed store, hash-verified

907 * indexes), or NULL if none exists.
908 */
909RelOptInfo *
910find_grouped_rel(PlannerInfo *root, Relids relids)
911{
912 RelAggInfo *agg_info;
913
914 if (!root->setup_agg_pushdown)
915 return NULL;
916
917 agg_info = find_grouped_rel_agg_info(root, relids);
918 if (agg_info == NULL)
919 return NULL;
920
921 return get_cheaper_rel(agg_info->rel_grouped,
922 agg_info->rel_grouped_non_plain);
923}
924
925/*
926 * get_grouped_rel

Callers 3

standard_join_searchFunction · 0.85
get_grouped_relFunction · 0.85

Calls 2

get_cheaper_relFunction · 0.85

Tested by

no test coverage detected