Search in sources :

Example 1 with IntersectNode

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());
}
Also used : PlanNode(io.prestosql.spi.plan.PlanNode) IntersectNode(io.prestosql.spi.plan.IntersectNode)

Aggregations

IntersectNode (io.prestosql.spi.plan.IntersectNode)1 PlanNode (io.prestosql.spi.plan.PlanNode)1