Search in sources :

Example 1 with EnumerableRoot

use of io.dingodb.calcite.rel.EnumerableRoot in project dingo by dingodb.

the class DingoToEnumerableRule method onMatch.

@Override
public void onMatch(@Nonnull RelOptRuleCall call) {
    RelNode rel = call.rel(0);
    call.transformTo(new EnumerableRoot(rel.getCluster(), rel.getTraitSet().replace(EnumerableConvention.INSTANCE), rel));
}
Also used : RelNode(org.apache.calcite.rel.RelNode) EnumerableRoot(io.dingodb.calcite.rel.EnumerableRoot)

Aggregations

EnumerableRoot (io.dingodb.calcite.rel.EnumerableRoot)1 RelNode (org.apache.calcite.rel.RelNode)1