Search in sources :

Example 1 with LogicalValues

use of org.apache.calcite.rel.logical.LogicalValues in project drill by apache.

the class DrillValuesRule method onMatch.

@Override
public void onMatch(RelOptRuleCall call) {
    final LogicalValues values = (LogicalValues) call.rel(0);
    final RelTraitSet traits = values.getTraitSet().plus(DrillRel.DRILL_LOGICAL);
    call.transformTo(new DrillValuesRel(values.getCluster(), values.getRowType(), values.getTuples(), traits));
}
Also used : RelTraitSet(org.apache.calcite.plan.RelTraitSet) LogicalValues(org.apache.calcite.rel.logical.LogicalValues)

Aggregations

RelTraitSet (org.apache.calcite.plan.RelTraitSet)1 LogicalValues (org.apache.calcite.rel.logical.LogicalValues)1