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
If in Batch operation INSERT statement defined as multiline go string - insert will failed with error clickhouse [Append]: clickhouse: expected N arguments, got M
This happened because of incorrect Regex used in extractNormalizedInsertQueryAndColumns which not honor newlines in statement. Because of that Batch operation uses list of columns from ClickHouse table instead of list of columns in INSERT statement and batch fails with error
Fix: #1373
Observed
If in Batch operation INSERT statement defined as multiline go string - insert will failed with error
clickhouse [Append]: clickhouse: expected N arguments, got M
This happened because of incorrect Regex used in
extractNormalizedInsertQueryAndColumns
which not honor newlines in statement. Because of that Batch operation uses list of columns from ClickHouse table instead of list of columns in INSERT statement and batch fails with errorFix: #1373
Expected behavior
Correct insert without errors
Code example
Error log
Details
Environment
clickhouse-go
version: v2.27.1database/sql
compatible driverThe text was updated successfully, but these errors were encountered: