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
Is there a way to insert decimal type to clickhouse?
My test config:
input:
generate:
count: 1mapping: | root.id = 1 root.x = 3.14output:
sql_insert:
driver: clickhousedsn: clickhouse://127.0.0.1:9000/testtable: testcolumns:
- id
- xargs_mapping: | root = [ this.id, this.x, ]init_statement: | create table if not exists test.test(id UInt64, x Decimal64(2)) order by id;
Log output:
INFO Running main config from specified file @service=redpanda-connect benthos_version=4.39.0 path=tmp/config.yaml
INFO Listening for HTTP requests at: http://0.0.0.0:4195 @service=redpanda-connect
INFO Input type generate is now active @service=redpanda-connect label="" path=root.input
INFO Launching a Redpanda Connect instance, use CTRL+C to close @service=redpanda-connect
INFO Output type sql_insert is now active @service=redpanda-connect label="" path=root.output
ERRO Failed to send message to sql_insert: clickhouse [AppendRow]: x clickhouse [AppendRow]: converting float64 to Decimal(18, 2) is unsupported @service=redpanda-connect label="" path=root.output
ERRO Failed to send message to sql_insert: clickhouse [AppendRow]: x clickhouse [AppendRow]: converting float64 to Decimal(18, 2) is unsupported @service=redpanda-connect label="" path=root.output
ERRO Failed to send message to sql_insert: clickhouse [AppendRow]: x clickhouse [AppendRow]: converting float64 to Decimal(18, 2) is unsupported @service=redpanda-connect label="" path=root.output
I tried x.string() without success.
The text was updated successfully, but these errors were encountered:
Hi,
Is there a way to insert decimal type to clickhouse?
My test config:
Log output:
I tried
x.string()
without success.The text was updated successfully, but these errors were encountered: