Search in sources :

Example 6 with LogicalOperator

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();
}
Also used : Project(org.apache.drill.common.logical.data.Project) NamedExpression(org.apache.drill.common.logical.data.NamedExpression) LogicalOperator(org.apache.drill.common.logical.data.LogicalOperator)

Example 7 with LogicalOperator

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);
}
Also used : LogicalOperator(org.apache.drill.common.logical.data.LogicalOperator)

Aggregations

LogicalOperator (org.apache.drill.common.logical.data.LogicalOperator)7 FieldReference (org.apache.drill.common.expression.FieldReference)2 RelFieldCollation (org.apache.calcite.rel.RelFieldCollation)1 AggregateCall (org.apache.calcite.rel.core.AggregateCall)1 LogicalExpression (org.apache.drill.common.expression.LogicalExpression)1 Filter (org.apache.drill.common.logical.data.Filter)1 Join (org.apache.drill.common.logical.data.Join)1 Limit (org.apache.drill.common.logical.data.Limit)1 NamedExpression (org.apache.drill.common.logical.data.NamedExpression)1 Order (org.apache.drill.common.logical.data.Order)1 Project (org.apache.drill.common.logical.data.Project)1