Search in sources :

Example 1 with BeamSideInputJoinRel

use of org.apache.beam.sdk.extensions.sql.impl.rel.BeamSideInputJoinRel in project beam by apache.

the class BeamSideInputJoinRule method onMatch.

@Override
public void onMatch(RelOptRuleCall call) {
    Join join = (Join) call.rel(0);
    BeamSideInputJoinRel rel = new BeamSideInputJoinRel(join.getCluster(), join.getTraitSet().replace(BeamLogicalConvention.INSTANCE), convert(join.getLeft(), join.getLeft().getTraitSet().replace(BeamLogicalConvention.INSTANCE)), convert(join.getRight(), join.getRight().getTraitSet().replace(BeamLogicalConvention.INSTANCE)), join.getCondition(), join.getVariablesSet(), join.getJoinType());
    call.transformTo(rel);
}
Also used : BeamSideInputJoinRel(org.apache.beam.sdk.extensions.sql.impl.rel.BeamSideInputJoinRel) Join(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.Join) LogicalJoin(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.logical.LogicalJoin)

Aggregations

BeamSideInputJoinRel (org.apache.beam.sdk.extensions.sql.impl.rel.BeamSideInputJoinRel)1 Join (org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.Join)1 LogicalJoin (org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.logical.LogicalJoin)1