mirror of https://github.com/citusdata/citus.git
parent
aca5f35ab9
commit
74bd33d0cc
|
@ -140,17 +140,6 @@ RecursivelyPlanSubqueriesAndCTEs(Query *query,
|
||||||
DeferredErrorMessage *error = NULL;
|
DeferredErrorMessage *error = NULL;
|
||||||
RecursivePlanningContext context;
|
RecursivePlanningContext context;
|
||||||
|
|
||||||
context.level = 0;
|
|
||||||
context.planId = planId;
|
|
||||||
context.subPlanList = NIL;
|
|
||||||
context.plannerRestrictionContext = plannerRestrictionContext;
|
|
||||||
|
|
||||||
error = RecursivelyPlanCTEs(query, &context);
|
|
||||||
if (error != NULL)
|
|
||||||
{
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (SubqueryPushdown)
|
if (SubqueryPushdown)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -166,6 +155,17 @@ RecursivelyPlanSubqueriesAndCTEs(Query *query,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
context.level = 0;
|
||||||
|
context.planId = planId;
|
||||||
|
context.subPlanList = NIL;
|
||||||
|
context.plannerRestrictionContext = plannerRestrictionContext;
|
||||||
|
|
||||||
|
error = RecursivelyPlanCTEs(query, &context);
|
||||||
|
if (error != NULL)
|
||||||
|
{
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
/* XXX: plan subqueries */
|
/* XXX: plan subqueries */
|
||||||
|
|
||||||
*subPlanList = context.subPlanList;
|
*subPlanList = context.subPlanList;
|
||||||
|
|
Loading…
Reference in New Issue