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.

貢獻者指南