Analysis analysis = analyzer.analyze(statement);
PlanNodeIdAllocator idAllocator = new PlanNodeIdAllocator();
// plan statement
LogicalPlanner logicalPlanner = new LogicalPlanner(session, planOptimizers, idAllocator, metadata);
Plan plan = logicalPlanner.plan(analysis);
return new DistributedLogicalPlanner(metadata, idAllocator).createSubPlans(plan, false);
}
}