Search in sources :

Example 1 with IntersectNode

use of com.facebook.presto.spi.plan.IntersectNode in project presto by prestodb.

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(getSourceLocation(node), idAllocator.getNextId(), setOperationPlan.getSources(), setOperationPlan.getOutputVariables(), setOperationPlan.getVariableMapping());
    return new RelationPlan(planNode, analysis.getScope(node), planNode.getOutputVariables());
}
Also used : PlanNode(com.facebook.presto.spi.plan.PlanNode) IntersectNode(com.facebook.presto.spi.plan.IntersectNode)

Aggregations

IntersectNode (com.facebook.presto.spi.plan.IntersectNode)1 PlanNode (com.facebook.presto.spi.plan.PlanNode)1