Module single_distinct_to_groupby

Module single_distinct_to_groupby 

Source
Expand description

SingleDistinctToGroupBy replaces AGG(DISTINCT ..) with AGG(..) GROUP BY ..

Structsยง

SingleDistinctToGroupBy
single distinct to group by optimizer rule

Constantsยง

SINGLE_DISTINCT_ALIAS ๐Ÿ”’

Functionsยง

contains_grouping_set ๐Ÿ”’
Check if the first expr is Expr::GroupingSet.
is_single_distinct_agg ๐Ÿ”’
Check whether all aggregate exprs are distinct on a single field.