Closed EricThompson-PeopleReign closed 1 year ago
I did more investigation. This line overrides the data
so that the INSERT INTO ${table} FORMAT JSONEachRow
gets overridden: https://github.com/depyronick/clickhouse-client/blob/main/src/client/ClickHouseClient.ts#L351
Added a fix to the code https://github.com/depyronick/clickhouse-client/pull/25
@kenvals thanks for the contribution, you're fantastic. i just merged & deployed the new version as 2.0.2 please validate and close the issue if it's ok. thanks again.
closing due to inactivity, feel free to reopen if still occurs
I'm calling
await orm.insertPromise<Log>('logs', [log])
and getting this error:I went into the source code and added a console.log to see what it was sending the server: ClickHouseCLient.js:258
And get this:
I log into the ClickHouse server and run that query directly and it inserts just fine.
ClickHouse server version: version 23.3.1
@depyronick/clickhouse-client version: 2.0.1