Search in sources :

Example 1 with ExceptNode

use of com.facebook.presto.sql.planner.plan.ExceptNode in project presto by prestodb.

the class RelationPlanner method visitExcept.

@Override
protected RelationPlan visitExcept(Except node, Void context) {
    checkArgument(!node.getRelations().isEmpty(), "No relations specified for EXCEPT");
    SetOperationPlan setOperationPlan = process(node);
    PlanNode planNode = new ExceptNode(idAllocator.getNextId(), setOperationPlan.getSources(), setOperationPlan.getSymbolMapping(), ImmutableList.copyOf(setOperationPlan.getSymbolMapping().keySet()));
    return new RelationPlan(planNode, analysis.getScope(node), planNode.getOutputSymbols());
}
Also used : PlanNode(com.facebook.presto.sql.planner.plan.PlanNode) ExceptNode(com.facebook.presto.sql.planner.plan.ExceptNode)

Aggregations

ExceptNode (com.facebook.presto.sql.planner.plan.ExceptNode)1 PlanNode (com.facebook.presto.sql.planner.plan.PlanNode)1