Examples of UnionRel


Examples of org.eigenbase.rel.UnionRel

    super(RelOptRule.any(UnionRel.class, Convention.NONE), "DrillUnionRule");
  }

  @Override
  public void onMatch(RelOptRuleCall call) {
    final UnionRel union = (UnionRel) call.rel(0);
    final RelTraitSet traits = union.getTraitSet().plus(DrillRel.CONVENTION);
    final List<RelNode> convertedInputs = new ArrayList<>();
    for (RelNode input : union.getInputs()) {
      final RelNode convertedInput = convert(input, traits);
      convertedInputs.add(convertedInput);
    }
    call.transformTo(new DrillUnionRel(union.getCluster(), traits, convertedInputs, union.all));
  }
View Full Code Here

Examples of org.eigenbase.rel.UnionRel

    super(RelOptHelper.any(UnionRel.class, Convention.NONE), "DrillUnionRule");
  }

  @Override
  public void onMatch(RelOptRuleCall call) {
    final UnionRel union = (UnionRel) call.rel(0);
    final RelTraitSet traits = union.getTraitSet().plus(DrillRel.DRILL_LOGICAL);
    final List<RelNode> convertedInputs = new ArrayList<>();
    for (RelNode input : union.getInputs()) {
      final RelNode convertedInput = convert(input, input.getTraitSet().plus(DrillRel.DRILL_LOGICAL));
      convertedInputs.add(convertedInput);
    }
    try {
      call.transformTo(new DrillUnionRel(union.getCluster(), traits, convertedInputs, union.all));
    } catch (InvalidRelException e) {
      tracer.warning(e.toString()) ;
    }
  }
View Full Code Here

Examples of org.eigenbase.rel.UnionRel

    super(RelOptHelper.any(UnionRel.class, Convention.NONE), "DrillUnionRule");
  }

  @Override
  public void onMatch(RelOptRuleCall call) {
    final UnionRel union = (UnionRel) call.rel(0);
    final RelTraitSet traits = union.getTraitSet().plus(DrillRel.DRILL_LOGICAL);
    final List<RelNode> convertedInputs = new ArrayList<>();
    for (RelNode input : union.getInputs()) {
      final RelNode convertedInput = convert(input, input.getTraitSet().plus(DrillRel.DRILL_LOGICAL));
      convertedInputs.add(convertedInput);
    }
    try {
      call.transformTo(new DrillUnionRel(union.getCluster(), traits, convertedInputs, union.all));
    } catch (InvalidRelException e) {
      tracer.warning(e.toString()) ;
    }
  }
View Full Code Here

Examples of org.eigenbase.rel.UnionRel

  @Override
  public void onMatch( RelOptRuleCall call )
    {
    List<RelNode> rels = call.getRelList();

    final UnionRel union = (UnionRel) rels.get( 0 );
    final List<RelNode> inputs = rels.subList( 1, rels.size() );

    if( !union.getVariablesStopped().isEmpty() )
      {
      LOG.warn( "variables stopped not supported by this rule" );
      return;
      }

    call.transformTo(
      new CascadingUnionRel(
        union.getCluster(),
        union.getCluster().traitSetOf( Cascading.CONVENTION ),
        inputs,
        union.all
      ) );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.