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
Decimal column type is rather new for clickhouse.
I've implemented it in 1.1.15, you could grab this version from nuget to test.
Column data range is limited to 10^28 - this is .NET platform limitation. If you wish you could improve my code with BigDecimal support to extend range to clickhouse's Decimal128 10^38 although yandex docs states that Decimal128 is a big performance hit. (See DecimalColumnType.Read and .ctor)
Another limitation is precision loss upon inserts, e.g. I'm inserting value 666 with precision 10 and get 668.6100869842. (See DecimalColumnType.Write)
Description
I have a few decimal(x,y) fields in my DB and if I try to read data I'll receive an exception "Unknown column type"
Steps to reproduce
CREATE TABLE default.logger (
timestamp UInt64,
id UInt64,
value Decimal(19, 9)
) ENGINE = MergeTree()
ORDER BY
id SETTINGS index_granularity = 8192
And I'm trying to read data from this table for a test by simple "Select * FROM tableName" command.
Workarounds
Don't know for now
What should be done
Decimals should be added to Types or method public static ColumnType Create(string name) should be customized.
The text was updated successfully, but these errors were encountered: