Search in sources :

Example 1 with BeamCoGBKJoinRel

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

the class BeamCoGBKJoinRule method onMatch.

@Override
public void onMatch(RelOptRuleCall call) {
    Join join = (Join) call.rel(0);
    BeamCoGBKJoinRel rel = new BeamCoGBKJoinRel(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 : 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) BeamCoGBKJoinRel(org.apache.beam.sdk.extensions.sql.impl.rel.BeamCoGBKJoinRel)

Aggregations

BeamCoGBKJoinRel (org.apache.beam.sdk.extensions.sql.impl.rel.BeamCoGBKJoinRel)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