use of org.apache.drill.common.logical.data.LogicalOperator in project drill by apache.
the class DrillProjectRel method implement.
@Override
public LogicalOperator implement(DrillImplementor implementor) {
LogicalOperator inputOp = implementor.visitChild(this, 0, getInput());
Project.Builder builder = Project.builder();
builder.setInput(inputOp);
for (NamedExpression e : this.getProjectExpressions(implementor.getContext())) {
builder.addExpr(e);
}
return builder.build();
}
use of org.apache.drill.common.logical.data.LogicalOperator in project drill by apache.
the class DrillImplementor method go.
public void go(DrillRel root) {
LogicalOperator rootLOP = root.implement(this);
rootLOP.accept(new AddOpsVisitor(), null);
}
Aggregations