mirror of https://github.com/citusdata/citus.git
Make Scan node abstract, PG commit: 8c73c11a0d39049de2c1f400d8765a0eb21f5228
parent
af0de8b19a
commit
39067d3543
|
@ -103,15 +103,14 @@ PlannedStmt *
|
||||||
GeneratePlaceHolderPlannedStmt(Query *parse)
|
GeneratePlaceHolderPlannedStmt(Query *parse)
|
||||||
{
|
{
|
||||||
PlannedStmt *result = makeNode(PlannedStmt);
|
PlannedStmt *result = makeNode(PlannedStmt);
|
||||||
Scan *scanNode = makeNode(Scan);
|
SeqScan *scanNode = makeNode(SeqScan);
|
||||||
Plan *plan = &scanNode->plan;
|
Plan *plan = &(scanNode->scan.plan);
|
||||||
|
|
||||||
Node *distKey PG_USED_FOR_ASSERTS_ONLY = NULL;
|
Node *distKey PG_USED_FOR_ASSERTS_ONLY = NULL;
|
||||||
|
|
||||||
Assert(FastPathRouterQuery(parse, &distKey));
|
Assert(FastPathRouterQuery(parse, &distKey));
|
||||||
|
|
||||||
/* there is only a single relation rte */
|
/* there is only a single relation rte */
|
||||||
scanNode->scanrelid = 1;
|
scanNode->scan.scanrelid = 1;
|
||||||
|
|
||||||
plan->targetlist =
|
plan->targetlist =
|
||||||
copyObject(FetchStatementTargetList((Node *) parse));
|
copyObject(FetchStatementTargetList((Node *) parse));
|
||||||
|
|
Loading…
Reference in New Issue