public final class FlinkAggregateExpandDistinctAggregatesRule
extends org.apache.calcite.plan.RelOptRule
COUNT(DISTINCT x)) from a Aggregate.
How this is done depends upon the arguments to the function. If all functions have the same
argument (e.g. COUNT(DISTINCT x), SUM(DISTINCT x) both have the argument x) then
one extra Aggregate is sufficient.
If there are multiple arguments (e.g. COUNT(DISTINCT x), COUNT(DISTINCT y)) the rule
creates separate Aggregates and combines using a Join.
| 限定符和类型 | 字段和说明 |
|---|---|
static FlinkAggregateExpandDistinctAggregatesRule |
INSTANCE
The default instance of the rule; operates only on logical expressions.
|
static FlinkAggregateExpandDistinctAggregatesRule |
JOIN
Instance of the rule that operates only on logical expressions and generates a join.
|
boolean |
useGroupingSets |
| 构造器和说明 |
|---|
FlinkAggregateExpandDistinctAggregatesRule(Class<? extends org.apache.calcite.rel.core.Aggregate> clazz,
boolean useGroupingSets,
org.apache.calcite.tools.RelBuilderFactory relBuilderFactory) |
FlinkAggregateExpandDistinctAggregatesRule(Class<? extends org.apache.calcite.rel.logical.LogicalAggregate> clazz,
boolean useGroupingSets,
org.apache.calcite.rel.core.RelFactories.JoinFactory joinFactory)
已过时。
|
FlinkAggregateExpandDistinctAggregatesRule(Class<? extends org.apache.calcite.rel.logical.LogicalAggregate> clazz,
org.apache.calcite.rel.core.RelFactories.JoinFactory joinFactory)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onMatch(org.apache.calcite.plan.RelOptRuleCall call) |
public static final FlinkAggregateExpandDistinctAggregatesRule INSTANCE
public static final FlinkAggregateExpandDistinctAggregatesRule JOIN
public final boolean useGroupingSets
public FlinkAggregateExpandDistinctAggregatesRule(Class<? extends org.apache.calcite.rel.core.Aggregate> clazz, boolean useGroupingSets, org.apache.calcite.tools.RelBuilderFactory relBuilderFactory)
@Deprecated public FlinkAggregateExpandDistinctAggregatesRule(Class<? extends org.apache.calcite.rel.logical.LogicalAggregate> clazz, boolean useGroupingSets, org.apache.calcite.rel.core.RelFactories.JoinFactory joinFactory)
@Deprecated public FlinkAggregateExpandDistinctAggregatesRule(Class<? extends org.apache.calcite.rel.logical.LogicalAggregate> clazz, org.apache.calcite.rel.core.RelFactories.JoinFactory joinFactory)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.