Search in sources :

Example 1 with PluginJoinRel

use of org.apache.drill.exec.store.plan.rel.PluginJoinRel in project drill by apache.

the class PluginJoinRule method convert.

@Override
public RelNode convert(RelNode rel) {
    Join join = (Join) rel;
    RelTraitSet traits = join.getTraitSet().replace(getOutConvention());
    return new PluginJoinRel(join.getCluster(), traits, convert(join.getLeft(), traits), convert(join.getRight(), traits), join.getCondition(), join.getJoinType());
}
Also used : PluginJoinRel(org.apache.drill.exec.store.plan.rel.PluginJoinRel) Join(org.apache.calcite.rel.core.Join) RelTraitSet(org.apache.calcite.plan.RelTraitSet)

Aggregations

RelTraitSet (org.apache.calcite.plan.RelTraitSet)1 Join (org.apache.calcite.rel.core.Join)1 PluginJoinRel (org.apache.drill.exec.store.plan.rel.PluginJoinRel)1