go-graphite / graphite-clickhouse

Graphite cluster backend with ClickHouse support
MIT License
213 stars 52 forks source link

fix: set correct clickhouse aggregation functions when using consolidateBy #281

Closed mchrome closed 4 months ago

mchrome commented 5 months ago

Fixes a case where consolidateBy function is used with an argument 'first' or 'last' which causes graphite-clickhouse to return "500 Storage error" since aggregate functions are named differently in clickhouse.