uniqExact
Calculates the exact number of different argument values.
Use the uniqExact function if you absolutely need an exact result. Otherwise use the uniq function.
The uniqExact function uses more memory than uniq, because the size of the state has unbounded growth as the number of different values increases.
Arguments
The function takes a variable number of parameters. Parameters can be Tuple, Array, Date, DateTime, String, or numeric types.
Example
In this example we'll use the uniqExact function to count the number of unique type codes (a short identifier for the type of aircraft) in the opensky data set.
See Also
uniqExact
Introduced in: v1.1
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
x— The function takes a variable number of parameters.Tuple(T)orArray(T)orDateorDateTimeorStringor(U)Int*orFloat*orDecimal
Returned value
Returns the exact number of different argument values as a UInt64. UInt64
Examples
Basic usage
Multiple arguments