You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recommendation: Keep open — maintainer decision
Decimal256 needs a 256-bit value type, and the library has none. A maintainer decides on that design; until then, the client should reject a precision over 38 with a clear error, because today it misreads the data.
Category: Feature
Classification: impact: none · area: Data types & formats (Decimal256)
Status on master: Not supported on master — a0ac408, ClickHouse 26.10.4.207, a test run: the client reads each 32-byte Decimal256 value as 16 bytes.
Breaking change: No — can be done without a break: a new 256-bit value type; precisions up to 38 keep the current API.
Analysis: The type parser accepts the server type Decimal(76, S) as Decimal (clickhouse/types/type_parser.cpp:72-75), ColumnDecimal stores every precision above 18 in a ColumnInt128 (clickhouse/columns/decimal.cpp:67-73), and the precision check is only a TODO (clickhouse/types/types.cpp:320). A Decimal(39..76, S) value has 32 bytes on the wire, so Select() reads half of each value, gives wrong values, then fails with an error that does not name the type. Insert() sends 16 bytes for each value, so the insert fails at the server receive timeout (300 s).
Automated triage by Polyglot AI. A maintainer makes the final decision. Shortened on 2026-11-20: the edit history has the first version.
Activity
monkeyboiii commentedon Jun 11, 2025
Second this
polyglotAI-bot commentedon Nov 18, 2026
Recommendation: Keep open — maintainer decision
Decimal256 needs a 256-bit value type, and the library has none. A maintainer decides on that design; until then, the client should reject a precision over 38 with a clear error, because today it misreads the data.
master: Not supported on master —a0ac408, ClickHouse 26.10.4.207, a test run: the client reads each 32-byteDecimal256value as 16 bytes.Analysis: The type parser accepts the server type
Decimal(76, S)asDecimal(clickhouse/types/type_parser.cpp:72-75),ColumnDecimalstores every precision above 18 in aColumnInt128(clickhouse/columns/decimal.cpp:67-73), and the precision check is only a TODO (clickhouse/types/types.cpp:320). ADecimal(39..76, S)value has 32 bytes on the wire, soSelect()reads half of each value, gives wrong values, then fails with an error that does not name the type.Insert()sends 16 bytes for each value, so the insert fails at the server receive timeout (300 s).Automated triage by Polyglot AI. A maintainer makes the final decision. Shortened on 2026-11-20: the edit history has the first version.