cube-js/cube

Native distinct counts in ClickHouse dialect

开放

#2,334 创建于 2021年3月11日

 (2 条评论) (1 个反应) (0 位负责人)Rust (1,965 个派生)batch import
driver:clickhousegood first issuehelp wanted

仓库指标

星标
 (19,563 个星标)
PR 合并指标
 (平均合并 5天 16小时) (30 天内合并 138 个 PR)

描述

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.

贡献者指南