housepower / ckman

This is a tool which used to manage and monitor ClickHouse database
Apache License 2.0
438 stars 108 forks source link

fix Decimal128 is not supported bug #207

Closed chenxinya closed 2 years ago

chenxinya commented 2 years ago

the bug phenomenon: use query-execution page to query table and this table include decimal type column,but the ckman display ”Decimal128 is not supported “ solution: I find clickhosue-go already fixed this bug,refer to :ClickHouse/clickhouse-go#401 First I upgraded ckman‘s clickhouse-go dependence from v1.4.5 to v1.4.6 The ckman no longer display “Decimal128 is not supported”,but decimal type column became garbled,then I test clickhouse-server.go's QueryInfo function ,the problem was located. when Clickhouse column is decimal type, it returns 16 length byte array ,so I fixed this bug refer to clickhouse-go V2 Code.