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 :) |
Replies: 3 comments
|
Hi @nuclon, could you please share your configuration (redacted)? UPD: sql_exporter doesn't contain any db-specific code, so
|
|
I'll convert it to discussion at the moment, you may also find related Clickhouse discussions here. |
|
Thanks for pointing to the documentation. |

Hi @nuclon, could you please share your configuration (redacted)?
UPD: sql_exporter doesn't contain any db-specific code, so
invalid INSERT querycomes 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: