cube-js/cube

Native distinct counts in ClickHouse dialect

Open

#2 334 ouverte le 11 mars 2021

Voir sur GitHub
 (2 commentaires) (1 réaction) (0 assignés)Rust (1 965 forks)batch import
driver:clickhousegood first issuehelp wanted

Métriques du dépôt

Stars
 (19 563 stars)
Métriques de merge PR
 (Merge moyen 5j 16h) (138 PRs mergées en 30 j)

Description

Is your feature request related to a problem? Please describe. ClickHouse supports a number of functions to count distinct values: uniq, uniqExact, uniqHLL12. However, they are not used in ClickHouseQuery adapter to support countDistinctApprox and other types of aggregations.

Describe the solution you'd like With the guidance of the Cube.js team and taking other adapters as examples, these functions should be used in the adapter.

Describe alternatives you've considered

Additional context Without this feature, countDistinctApprox is not supported at all, and — I think — countDistinct works slower than it could.

Guide contributeur