glaredb_core/functions/aggregate/builtin/
mod.rs1pub mod approx_count_distinct;
2pub mod approx_quantile;
3pub mod avg;
4pub mod bit_and;
5pub mod bit_or;
6pub mod bool_and;
7pub mod bool_or;
8pub mod corr;
9pub mod count;
10pub mod covar;
11pub mod first;
12pub mod minmax;
13pub mod regr_avg;
14pub mod regr_count;
15pub mod regr_r2;
16pub mod regr_slope;
17pub mod stddev;
18pub mod string_agg;
19pub mod sum;
20
21use approx_count_distinct::FUNCTION_SET_APPROX_COUNT_DISTINCT;
22use approx_quantile::FUNCTION_SET_APPROX_QUANTILE;
23use avg::FUNCTION_SET_AVG;
24use bit_and::FUNCTION_SET_BIT_AND;
25use bit_or::FUNCTION_SET_BIT_OR;
26use bool_and::FUNCTION_SET_BOOL_AND;
27use bool_or::FUNCTION_SET_BOOL_OR;
28use corr::FUNCTION_SET_CORR;
29use count::FUNCTION_SET_COUNT;
30use covar::{FUNCTION_SET_COVAR_POP, FUNCTION_SET_COVAR_SAMP};
31use first::FUNCTION_SET_FIRST;
32use minmax::{FUNCTION_SET_MAX, FUNCTION_SET_MIN};
33use regr_avg::{FUNCTION_SET_REGR_AVG_X, FUNCTION_SET_REGR_AVG_Y};
34use regr_count::FUNCTION_SET_REGR_COUNT;
35use regr_r2::FUNCTION_SET_REGR_R2;
36use regr_slope::FUNCTION_SET_REGR_SLOPE;
37use stddev::{
38 FUNCTION_SET_STDDEV_POP,
39 FUNCTION_SET_STDDEV_SAMP,
40 FUNCTION_SET_VAR_POP,
41 FUNCTION_SET_VAR_SAMP,
42};
43use string_agg::FUNCTION_SET_STRING_AGG;
44use sum::FUNCTION_SET_SUM;
45
46use crate::functions::function_set::AggregateFunctionSet;
47
48pub const BUILTIN_AGGREGATE_FUNCTION_SETS: &[AggregateFunctionSet] = &[
49 FUNCTION_SET_SUM,
50 FUNCTION_SET_AVG,
51 FUNCTION_SET_COUNT,
52 FUNCTION_SET_MIN,
53 FUNCTION_SET_MAX,
54 FUNCTION_SET_FIRST,
55 FUNCTION_SET_STDDEV_POP,
56 FUNCTION_SET_STDDEV_SAMP,
57 FUNCTION_SET_VAR_POP,
58 FUNCTION_SET_VAR_SAMP,
59 FUNCTION_SET_COVAR_POP,
60 FUNCTION_SET_COVAR_SAMP,
61 FUNCTION_SET_CORR,
62 FUNCTION_SET_REGR_COUNT,
63 FUNCTION_SET_REGR_AVG_Y,
64 FUNCTION_SET_REGR_AVG_X,
65 FUNCTION_SET_REGR_R2,
66 FUNCTION_SET_REGR_SLOPE,
67 FUNCTION_SET_STRING_AGG,
68 FUNCTION_SET_BOOL_AND,
69 FUNCTION_SET_BOOL_OR,
70 FUNCTION_SET_BIT_AND,
71 FUNCTION_SET_BIT_OR,
72 FUNCTION_SET_APPROX_COUNT_DISTINCT,
73 FUNCTION_SET_APPROX_QUANTILE,
74];