RawTree/docs
BlogDocs
Sign inSign up
Introduction
Get started
AgentsCLIAPI
Concepts
IntroductionResource modelAccess controlIngestion modelRaw tablesDynamic fieldsQueries and resultsStorage and computeAdaptive optimizationSorting keysProjectionsMutationsWorkload schedulingApps, connectors, and transformsSQL workflows
Guides
Overview
Integrations
Reference
Authentication
CLIMCP serverTypeScript SDK
Overview
Data TypesFormatsSystem Tables
Aggregate FunctionsaggThrowanalysisOfVarianceanyany_respect_nullsanyHeavyanyLastanyLast_respect_nullsapprox_top_kapprox_top_sumargAndMaxargAndMinargMaxargMinavgavgWeightedboundingRatiocategoricalInformationValuecontingencycorrcorrMatrixcorrStablecountcovarPopcovarPopMatrixcovarPopStablecovarSampcovarSampMatrixcovarSampStablecramersVcramersVBiasCorrectedcume_distdeltaSumdeltaSumTimestampdenseRankdistinctDynamicTypesdistinctJSONPathsdistinctJSONPathsAndTypesentropyestimateCompressionRatioexponentialMovingAverageexponentialTimeDecayedAvgexponentialTimeDecayedCountexponentialTimeDecayedMaxexponentialTimeDecayedSumflameGraphginigroupArraygroupArrayInsertAtgroupArrayIntersectgroupArrayLastgroupArrayMovingAvggroupArrayMovingSumgroupArraySamplegroupArraySortedgroupBitAndgroupBitmapgroupBitmapAndgroupBitmapOrgroupBitmapXorgroupBitOrgroupBitXorgroupConcatgroupFormatgroupNumericIndexedVectorgroupUniqArrayhistogramintervalLengthSumkolmogorovSmirnovTestkurtPopkurtSamplaglagInFramelargestTriangleThreeBucketsleadleadInFramemannWhitneyUTestmaxmaxIntersectionsmaxIntersectionsPositionmaxMappedArraysmeanZTestmergedJSONPatchminminMappedArraysMVTEncodenonNegativeDerivativenothingnothingNullnothingUInt64nth_valuentilepercentRankquantilequantileBFloat16quantileBFloat16WeightedquantileDDquantileDeterministicquantileExactquantileExactExclusivequantileExactHighquantileExactInclusivequantileExactLowquantileExactWeightedquantileExactWeightedInterpolatedquantileGKquantileInterpolatedWeightedquantilePrometheusHistogramquantilesquantilesBFloat16quantilesBFloat16WeightedquantilesDDquantilesDeterministicquantilesExactquantilesExactExclusivequantilesExactHighquantilesExactInclusivequantilesExactLowquantilesExactWeightedquantilesExactWeightedInterpolatedquantilesGKquantilesInterpolatedWeightedquantilesPrometheusHistogramquantilesTDigestquantilesTDigestWeightedquantilesTimingquantilesTimingWeightedquantileTDigestquantileTDigestWeightedquantileTimingquantileTimingWeightedrankrankCorrretentionrow_numbersequenceCountsequenceMatchsequenceMatchEventssequenceNextNodesimpleLinearRegressionsingleValueOrNullskewPopskewSampsparkbarstddevPopstddevPopStablestddevSampstddevSampStablestochasticLinearRegressionstochasticLogisticRegressionstudentTTeststudentTTestOneSamplesumsumCountsumKahansumMapFilteredsumMapFilteredWithOverflowsumMappedArrayssumMapWithOverflowsumWithOverflowtheilsUtimeSeriesBottomKMaskstimeSeriesChangesToGridtimeSeriesDeltaToGridtimeSeriesDerivToGridtimeSeriesGroupArraytimeSeriesIncreaseToGridtimeSeriesInstantDeltaToGridtimeSeriesInstantRateToGridtimeSeriesLastTwoSamplestimeSeriesLimitKMaskstimeSeriesPredictLinearToGridtimeSeriesRateToGridtimeSeriesResampleToGridWithStalenesstimeSeriesResetsToGridtimeSeriesTopKMaskstopKtopKWeighteduniquniqCombineduniqCombined64uniqExactuniqHLL12uniqThetauniqUpTovarPopvarPopStablevarSampvarSampStablewelchTTestwindowFunnel
ClickHouse compatibilityLimitsErrors
ReferenceSQL ReferenceAggregate Functions

Aggregate Functions

Reference for aggregate SQL functions.

This page describes the RawTree engine binary used to generate this reference. It does not define Query API support. Descriptions retain upstream ClickHouse terminology. See SQL interface scope.

Browse aggregate SQL functions.

Use the sidebar to navigate to a function.

UUID

UUID functions reference.

aggThrow

This function can be used for the purpose of testing exception safety.

Cookies

  • Necessary, always on: first-party cookies that keep the site working and help us improve it.
  • Third-party analytics: off unless you accept.