You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createfunctionvops_date_wavg_accumulate(state internal, x vops_date, y vops_date) returns internal as'MODULE_PATHNAME','vops_int4_wavg_accumulate' language C parallel safe;
1192
+
CREATEAGGREGATEwavg(vops_date, vops_date) (
1193
+
SFUNC = vops_date_wavg_accumulate,
1194
+
STYPE = internal,
1195
+
SSPACE =24,
1196
+
FINALFUNC = vops_wavg_final,
1197
+
COMBINEFUNC = vops_var_combine,
1198
+
SERIALFUNC = vops_var_serial,
1199
+
DESERIALFUNC = vops_var_deserial,
1200
+
PARALLEL = SAFE
1201
+
);
1202
+
1155
1203
createfunctionvops_date_avg_accumulate(state internal, val vops_date) returns internal as'MODULE_PATHNAME','vops_int4_avg_accumulate' language C parallel safe;
createfunctionvops_timestamp_wavg_accumulate(state internal, x vops_timestamp, y vops_timestamp) returns internal as'MODULE_PATHNAME','vops_int8_wavg_accumulate' language C parallel safe;
createfunctionvops_timestamp_avg_accumulate(state internal, val vops_timestamp) returns internal as'MODULE_PATHNAME','vops_int8_avg_accumulate' language C parallel safe;
OLAP queries usually perform some kind of aggregation of large volumes of data. These includes <code>grand</code> aggregates which are calculated for the whole
269
269
table or aggregates with <code>group by</code> which are calculated for each group.
270
-
VOPS implements all standard SQL aggregates: <code>count, min, max, sum, avg</code>. Them can be used exactly in the same way as in normal SQL queries:
270
+
VOPS implements all standard SQL aggregates: <code>count, min, max, sum, avg, var_pop, var_sampl, variance, stddev_pop, stddev_samp, stddev</code>. Them can be used exactly in the same way as in normal SQL queries:
0 commit comments