Expand description
Macros to generate match arms for AggType.
IMPORTANT: These macros must be carefully maintained especially when adding new
AggType/PbAggKind variants.
Macros§
- materialized_input_ state 
- AggTypes that are implemented with a materialized input state.
- must_have_ order_ by 
- AggTypes that must be called with ORDER BY clause. These are slightly different from variants not in- result_unaffected_by_order_by, in that variants returned by this macro should be banned while the others should just be warned.
- ordered_set 
- Ordered-set aggregate functions.
- result_unaffected_ by_ distinct 
- AggTypes of which the aggregate results are not affected by the user given DISTINCT keyword.
- result_unaffected_ by_ order_ by 
- AggTypes of which the aggregate results are not affected by the user given ORDER BY clause.
- rewritten
- AggTypes that should’ve been rewritten to other kinds. These kinds should not appear when generating physical plan nodes.
- simply_cannot_ two_ phase 
- AggTypes that are simply cannot 2-phased.
- single_value_ state 
- AggTypes that are implemented with a single value state (so-called stateless).
- single_value_ state_ iff_ in_ append_ only 
- AggTypes that are implemented with a single value state (so-called stateless) iff the input is append-only.