Skip to content
Opensource internals
  • Posts

Numerics

ClickHouse Sums Floats with Kahan Compensation and a 128-Bit Decimal Accumulator

Oct 24, 2026 16 min read Jay Hubbert

ClickHouse’s sumKahan carries a compensation term and reconstructs the lost low bits on every add; sum over Decimal widens the accumulator to Decimal128.

ClickhouseNumericsPerformanceInternals

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·