public class HiveAggregateProjectMergeRule
extends org.apache.calcite.rel.rules.AggregateProjectMergeRule
HiveAggregate
on top of a HiveProject
and if possible
aggregate through the project or removes the project.
This is only possible when the grouping expressions and arguments to the aggregate functions are field references (i.e. not expressions).
In some cases, this rule has the effect of trimming: the aggregate will use fewer columns than the project did.
Modifier and Type | Field and Description |
---|---|
static HiveAggregateProjectMergeRule |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(org.apache.calcite.plan.RelOptRuleCall call) |
public static final HiveAggregateProjectMergeRule INSTANCE
Copyright © 2022 The Apache Software Foundation. All rights reserved.