public class AggregateMultipleExpandRule
extends org.apache.calcite.plan.RelOptRule
AggregateProjectReduceRule, to reduce rolled up dimensions.
In case to scan other cuboid data without the rolled up dimensions.
Examples:
Origin Aggregate: group by grouping sets ((dim A, dim B, dim C), (dim A, dim C), (dim B, dim C))
Transformed Union:
select dim A, dim B, dim C, 0, 0, 0
union all
select dim A, null, dim C, 0, 1, 0
union all
select null, dim B, dim C, 1, 0, 0
| Modifier and Type | Field and Description |
|---|---|
static AggregateMultipleExpandRule |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
onMatch(org.apache.calcite.plan.RelOptRuleCall call) |
public static final AggregateMultipleExpandRule INSTANCE
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.