Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support AggregateFunction type #1173

Open
srikanthccv opened this issue Jan 14, 2024 · 3 comments
Open

Support AggregateFunction type #1173

srikanthccv opened this issue Jan 14, 2024 · 3 comments

Comments

@srikanthccv
Copy link
Contributor

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<BFloat16, Weight, TrivialHash, 4>;. It would be very helpful to send the go type map[uint16]uint64. In this PR we add the DDSketch ClickHouse/ClickHouse#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.

@iyuroch
Copy link
Contributor

iyuroch commented Feb 27, 2024

Are there any plans to add this functionality?

@jkaflik
Copy link
Contributor

jkaflik commented May 7, 2024

This enhancement was requested in #1292.

@srikanthccv any contributions are welcomed!

@roshaans
Copy link

Does the client not support even basic Aggregation Function Types like Count?

decode error: clickhouse: unsupported column type "AggregateFunction(count)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants