Search in sources :

Example 1 with OLAPUnionRel

use of org.apache.kylin.query.relnode.OLAPUnionRel in project kylin by apache.

the class OLAPUnionRule method convert.

@Override
public RelNode convert(RelNode rel) {
    final Union union = (Union) rel;
    final RelTraitSet traitSet = union.getTraitSet().replace(OLAPRel.CONVENTION);
    final List<RelNode> inputs = union.getInputs();
    return new OLAPUnionRel(rel.getCluster(), traitSet, convertList(inputs, OLAPRel.CONVENTION), union.all);
}
Also used : RelNode(org.apache.calcite.rel.RelNode) RelTraitSet(org.apache.calcite.plan.RelTraitSet) OLAPUnionRel(org.apache.kylin.query.relnode.OLAPUnionRel) Union(org.apache.calcite.rel.core.Union)

Aggregations

RelTraitSet (org.apache.calcite.plan.RelTraitSet)1 RelNode (org.apache.calcite.rel.RelNode)1 Union (org.apache.calcite.rel.core.Union)1 OLAPUnionRel (org.apache.kylin.query.relnode.OLAPUnionRel)1