These settings are available in system.settings and are autogenerated from source.
count_distinct_implementation
Type
String
Default
uniqExact
Specifies which of the uniq* functions should be used to perform the COUNT(DISTINCT …) construction.
Possible values:
count_distinct_optimization
Type
Bool
Default
0
Rewrite count distinct to subquery of group by