Skip to main content

uniqTheta

Introduced in: v21.6.0 Calculates the approximate number of different argument values, using the Theta Sketch Framework.
This function calculates a hash for all parameters in the aggregate, then uses it in calculations. It uses the KMV algorithm to approximate the number of different argument values.4096(2^12) 64-bit sketch are used. The size of the state is about 41 KB.The relative error is 3.125% (95% confidence), see the relative error table for detail.
Syntax
Arguments Returned value Returns a UInt64-type number representing the approximate number of different argument values. UInt64 Examples Basic usage
Query
Response
See Also
Last modified on June 23, 2026