Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.23 KB

percentiletdigestmv.md

File metadata and controls

49 lines (37 loc) · 1.23 KB
description
This section contains reference documentation for the PERCENTILETDIGESTMV function.

percentiletdigestmv

Returns the Nth percentile of the group using T-digest algorithm. An optional compression_factor can be specified to control the accuracy with a tradeoff in memory usage (i.e. higher compression_factor gives better accuracy but takes more memory). The default compression_factor is 100.

Signature

PERCENTILETDIGESTMV(colName, percentile)

PERCENTILETDIGESTMV(colName, percentile, compression_factor)

Usage Examples

These examples are based on the Hybrid Quick Start.

select PERCENTILETDIGESTMV(DivLongestGTimes, 50, 1000) AS value
from airlineStats 
where arraylength(DivLongestGTimes) > 1
value
10
select PERCENTILETDIGESTMV(DivLongestGTimes, 90) AS value
from airlineStats 
where arraylength(DivLongestGTimes) > 1
value
44
select PERCENTILETDIGESTMV(DivLongestGTimes, 99.9) AS value
from airlineStats 
where arraylength(DivLongestGTimes) > 1
value
108