clickhouse-cpp icon indicating copy to clipboard operation
clickhouse-cpp copied to clipboard

Support Decimal256

Open thomasj02 opened this issue 1 year ago • 1 comments

Clickhouse supports Decimal256, with precision up to 76 (https://clickhouse.com/docs/en/sql-reference/data-types/decimal). However, clickhouse-cpp only supports up to Decimal128.

Abseil doesn't have an int256, but boost::multiprecision does (https://www.boost.org/doc/libs/1_85_0/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html). There are many other int256 implementations available online, and clang has support for _BitInt(256)

thomasj02 avatar Jul 10 '24 03:07 thomasj02

Second this

monkeyboiii avatar Jun 11 '25 05:06 monkeyboiii