mirror of
https://github.com/gorules/zen.git
synced 2026-11-28 08:06:20 +00:00
stddev, variance, stddevPop, variancePop, skew, kurtosis, percentile, percentileApprox (t-digest, compression 100), countDistinct (count_distinct), countDistinctApprox (HLL p12 over xxh64 of the canonical value), distinct (unique), topK, first, last, argMax (maxBy) and argMin (minBy). Aggregates take a projection and an optional filter over the items, with # or a name given with 'as': sum(items as t, t.amount, t.ok). The parser rewrites them to map/filter closures and a null-skipping aggregate, so the stack VM, the lane VM, intellisense and dependency analysis share one form. Existing calls keep their behaviour: a callback form of sum, avg, min, max, median and mode needs # or a name.