write got error panic: failed to insert data: remoteAddr: 172.16.238.41:9000 - DB::Exception (62): Empty query
harryhan1989 opened this issue · 3 comments
harryhan1989 commented
write got error panic: failed to insert data: remoteAddr: 172.16.238.41:9000 - DB::Exception (62): Empty query
vahid-sohrabloo commented
Can you share your code?
harryhan1989 commented
the reason is my clickhouse table feilds using Decimal(30,3), when i use column.NewDecimal64(3, false) for Decimal(30,3) column, the issue will got. after i change the field type to Decimal64(3) in clickhouse, running as expected.
vahid-sohrabloo commented
@harryhan1989 thanks. I know it's annoying that chconn doesn't check the ClickHouse column type and just reads data.
I'm working on the v2
new version that uses Golang 1.18 generic. it's more simple and has some check these inputs to not happen these errors.