ClickHouse driver does not work as expected #629
-
With version 0.16.0, when the connection to clickhouse is used, all queries fail with following error:
Not sure, why it says "invalid INSERT query", but it seems the problem is somewhere there :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @nuclon, could you please share your configuration (redacted)? UPD: sql_exporter doesn't contain any db-specific code, so |
Beta Was this translation helpful? Give feedback.
-
I'll convert it to discussion at the moment, you may also find related Clickhouse discussions here. |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing to the documentation. |
Beta Was this translation helpful? Give feedback.
Hi @nuclon, could you please share your configuration (redacted)?
UPD: sql_exporter doesn't contain any db-specific code, so
invalid INSERT query
comes from the Clickhouse driver itself, the only occurrence found is here, which is related to the prepared statements (PrepareContext function). This won't work in the case of sql_exporter. So please make sure you use unprepared statements as stated in the docs: