> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# count_distinct_* session settings

> ClickHouse session settings in the count_distinct_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## count\_distinct\_implementation

Type

String

Default

uniqExact

Specifies which of the `uniq*` functions should be used to perform the [COUNT(DISTINCT ...)](https://clickhouse.com/docs/reference/functions/aggregate-functions/count.md) construction.

Possible values:

* [uniq](https://clickhouse.com/docs/reference/functions/aggregate-functions/uniq.md)
* [uniqCombined](https://clickhouse.com/docs/reference/functions/aggregate-functions/uniqCombined.md)
* [uniqCombined64](https://clickhouse.com/docs/reference/functions/aggregate-functions/uniqCombined64.md)
* [uniqHLL12](https://clickhouse.com/docs/reference/functions/aggregate-functions/uniqHLL12.md)
* [uniqExact](https://clickhouse.com/docs/reference/functions/aggregate-functions/uniqExact.md)
