Skip to content
ClickHouse Docs

uniqUpTo

Autogenerated from ClickHouse system tables

Calculates the number of distinct values of the argument, but only up to the specified threshold; if the number of distinct values exceeds the threshold, it returns threshold + 1.