ClickHouse/ch-go

Support for AggregateFunction data type

Opened this issue · 1 comments

This is a parent issue to add support for the data type AggregateFunction. Several different categories of quantile functions can be used with AggregateFunction. I think each of them deserves their own type as they have custom serialization/deserialization. I would like to help with this effort starting with quantile(s)DDSketch and quantileBFloat16 and more to follow. I have a quick prototype for DDSketch here main...srikanthccv:ch-go:ddsketch.

@ernado do you have anything in mind how the API should look like?

Tasks

The encode and decode parts should be fairly straightforward from the serialize and deserialize methods from ClickHouse. One thing that I am not sure what is the best way to go about it is ColumnType because it can vary a lot but that doesn't really matter at all because the underlying state decode and encode dictate everything.