cube-js/cube

Native distinct counts in ClickHouse dialect

Open

#2334 aperta il 11 mar 2021

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)Rust (1965 fork)batch import
driver:clickhousegood first issuehelp wanted

Metriche repository

Star
 (19.563 star)
Metriche merge PR
 (Merge medio 5g 16h) (138 PR mergiate in 30 g)

Descrizione

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.

Guida contributor