Search in sources :

Example 1 with TridentProjectRel

use of org.apache.storm.sql.planner.trident.rel.TridentProjectRel in project storm by apache.

the class TridentProjectRule method convert.

@Override
public RelNode convert(RelNode rel) {
    final Project project = (Project) rel;
    final RelNode input = project.getInput();
    return new TridentProjectRel(project.getCluster(), project.getTraitSet().replace(TridentLogicalConvention.INSTANCE), convert(input, input.getTraitSet().replace(TridentLogicalConvention.INSTANCE)), project.getProjects(), project.getRowType());
}
Also used : Project(org.apache.calcite.rel.core.Project) LogicalProject(org.apache.calcite.rel.logical.LogicalProject) TridentProjectRel(org.apache.storm.sql.planner.trident.rel.TridentProjectRel) RelNode(org.apache.calcite.rel.RelNode)

Aggregations

RelNode (org.apache.calcite.rel.RelNode)1 Project (org.apache.calcite.rel.core.Project)1 LogicalProject (org.apache.calcite.rel.logical.LogicalProject)1 TridentProjectRel (org.apache.storm.sql.planner.trident.rel.TridentProjectRel)1