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

Function ProcessSubqueryToJoin

src/backend/cdb/cdbsubselect.c:218–226  ·  view source on GitHub ↗

* Process subquery to extract useful information to be able to convert it to * a join. * * This scans the join tree, and verifies that it consists entirely of inner * joins. The inner joins can be represented as explicit JOIN_INNER JoinExprs* * or as FromExprs. All the join quals are collected in context->innerQual. * * context->safeToConvert must be 'true' on entry. This sets it to false i

Source from the content-addressed store, hash-verified

216 * there are any non-inner joins in the tree.
217 */
218static void
219ProcessSubqueryToJoin(Query *subselect, ConvertSubqueryToJoinContext *context)
220{
221 Assert(context);
222 Assert(context->safeToConvert);
223 Assert(subselect);
224
225 ProcessSubqueryToJoin_walker((Node *) subselect->jointree, context);
226}
227
228static void
229ProcessSubqueryToJoin_walker(Node *jtree, ConvertSubqueryToJoinContext *context)

Callers 1

safe_to_convert_EXPRFunction · 0.85

Calls 1

Tested by

no test coverage detected