ClickHouse / ClickHouse/clickhouse-go
Support `AggregateFunction` type
- Dominant language
- Go
- Stars
- 3.3k
- Forks
- 680
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 14
Description
I have a use case where I want to write the quantile sketch serialized data that is compatible with the ClickHouse server. For example, `quantileBFloat16` uses a hash of bfloat16 `using Data = HashMapWithStackMemory;`. It would be very helpful to send the go type `map[uint16]uint64`. In this PR we add the `DDSketch` https://github.com/ClickHouse/ClickHouse/pull/56342, which has its own binary representation. The sketches data from systems could come pre-aggregated that can be combined on the ClickHouse server to produce the quantile at the query time by merging them.
I would like to work on add support for `AggregateFunction` and `AggregateFunction(quantilesDDSketch ...))` to begin with. I see the go client library internally uses https://github.com/ClickHouse/ch-go. Let me know what you think.
Contributor guide
Research direction
Start by reviewing how the Go client uses ch-go, then compare the ClickHouse AggregateFunction and quantilesDDSketch representations described in the issue. Done means the client can support AggregateFunction values, beginning with quantilesDDSketch, with compatibility for the serialized data described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100