Search in sources :

Example 1 with StreamsProjectRel

use of org.apache.storm.sql.planner.streams.rel.StreamsProjectRel in project storm by apache.

the class StreamsProjectRule method convert.

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

Aggregations

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