use of io.prestosql.spi.plan.IntersectNode in project hetu-core by openlookeng.
the class RelationPlanner method visitIntersect.
@Override
protected RelationPlan visitIntersect(Intersect node, Void context) {
checkArgument(!node.getRelations().isEmpty(), "No relations specified for INTERSECT");
SetOperationPlan setOperationPlan = process(node);
PlanNode planNode = new IntersectNode(idAllocator.getNextId(), setOperationPlan.getSources(), setOperationPlan.getSymbolMapping(), ImmutableList.copyOf(setOperationPlan.getSymbolMapping().keySet()));
return new RelationPlan(planNode, analysis.getScope(node), planNode.getOutputSymbols());
}
Aggregations