public class MultipleDistinctAggregationToMarkDistinct extends Object implements Rule<AggregationNode>
- Aggregation
GROUP BY (k)
F1(DISTINCT a0, a1, ...)
F2(DISTINCT b0, b1, ...)
F3(c0, c1, ...)
- X
into
- Aggregation
GROUP BY (k)
F1(a0, a1, ...) mask ($0)
F2(b0, b1, ...) mask ($1)
F3(c0, c1, ...)
- MarkDistinct (k, a0, a1, ...) -> $0
- MarkDistinct (k, b0, b1, ...) -> $1
- X
Rule.Context, Rule.Result| Constructor and Description |
|---|
MultipleDistinctAggregationToMarkDistinct() |
| Modifier and Type | Method and Description |
|---|---|
Rule.Result |
apply(AggregationNode parent,
Captures captures,
Rule.Context context) |
Pattern<AggregationNode> |
getPattern()
Returns a pattern to which plan nodes this rule applies.
|
public MultipleDistinctAggregationToMarkDistinct()
public Pattern<AggregationNode> getPattern()
RulegetPattern in interface Rule<AggregationNode>public Rule.Result apply(AggregationNode parent, Captures captures, Rule.Context context)
apply in interface Rule<AggregationNode>Copyright © 2012–2019. All rights reserved.