mirror of https://github.com/citusdata/citus.git
parent
aca5f35ab9
commit
74bd33d0cc
|
@ -140,17 +140,6 @@ RecursivelyPlanSubqueriesAndCTEs(Query *query,
|
|||
DeferredErrorMessage *error = NULL;
|
||||
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)
|
||||
{
|
||||
/*
|
||||
|
@ -166,6 +155,17 @@ RecursivelyPlanSubqueriesAndCTEs(Query *query,
|
|||
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 */
|
||||
|
||||
*subPlanList = context.subPlanList;
|
||||
|
|
Loading…
Reference in New Issue