-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[exporter/clickhouse] Upgrade to opentelemetry-collector-contrib v0.107.0 failed due to bug in clickhouse-go
driver
#34717
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Thank you for finding this bug. I will correctly mark the open PR as a breaking change with some steps for proper migration path. Let me know if you need any suggestions for migrating these tables. For now I would suggest creating the new tables with a suffix such as |
Not sure which fix would be better for you (quicker to resolve on your end), but we could modify the insert statement if the only issue is the newline tokens. I see your change on the clickhouse-go repo |
Right now - it's not so urgent issue for me, I can keep going with version 0.106.0 until bug will be fixed in |
Validated that upgrading to version 0.108.0+ fixes this issue |
Component(s)
exporter/clickhouse
What happened?
Description
In version 0.107.0 were introduced changes to
logs
table structure with removal of some redundant columns in table: #34203Unfortunately due to bug in
clickhouse-go
driver Incorrect column list parsing for multiline INSERT statements exporter fails to insert records intologs
table.That happens because
clickhouse-go
driver doesn't honor list of columns in INSERT statement and is using list of columns in actual ClickHouse table.It's affecting upgrading existing users for both with default schema and custom schema
Also this bug is a blocker for future schema enchantments, like #34245
Issue created mostly for users who experienced described error and for tracking progress of bug fixing in upstream
Steps to Reproduce
otel_logs
tableotel_logs
tableExpected Result
New version should put records into
otel_logs
tableActual Result
Error produced and records couldn't be inserted into
otel_logs
table:Collector version
v0.107.0
Environment information
Environment
OS: "Ubuntu 22.04"
OpenTelemetry Collector configuration
Log output
The text was updated successfully, but these errors were encountered: