Skip to main content

uniqExact

Introduced in: v1.1.0 Calculates the exact number of different argument values.
The uniqExact function uses more memory than uniq, because the size of the state has unbounded growth as the number of different values increases. Use the uniqExact function if you absolutely need an exact result. Otherwise use the uniq function.
Syntax
Arguments Returned value Returns the exact number of different argument values as a UInt64. UInt64 Examples Basic usage
Query
Response
Multiple arguments
Query
Response
See Also
Last modified on June 23, 2026