uptrace / go-clickhouse

Golang ClickHouse client
https://clickhouse.uptrace.dev
BSD 2-Clause "Simplified" License
253 stars 27 forks source link

How does map correlate to AggregateFunction #66

Open vinay2897 opened 1 year ago

vinay2897 commented 1 year ago

This is a code snippet from uptrace here

type Measure struct {
        ....
    Histogram map[bfloat16.T]uint64 `ch:"type:AggregateFunction(quantilesBFloat16(0.5), Float32)"`
    ...
}

quantilesBFloat16 accepts a Column with numeric data as input.

I am unable to understand how a map is being stored in quantilesBFloat16.