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
{{ message }}
Repository navigation
ClickHouseBinaryFormatReader::getBigDecimal silently truncates large integer values #2748
It appears that ClickHouseBinaryFormatReader::getBigDecimal silently truncates large integers, at least in cases when the column is returned as an Int64. The same happens for UInt64.
Steps to reproduce
Update the username, password and hostname in the example to point to your ClickHouse instance
Run the main method in the example
Error Log or Exception StackTrace
Got 9223372036854776000 instead of expected 9223372036854775807 is printed, as the returned value has been silently truncated.
Expected Behaviour
getBigDecimal shouldn't truncate the values, ideally it would behave like
newBigDecimal(reader.getString))
In the example, the returned value should be 9223372036854775807.
Activity
chernser commentedon Feb 20, 2026
Thank you for reporting @AndreasP-EP !
Will fix it shortly.