Closed gclinux closed 5 years ago
I have fixed。 let clickhouseStream = ch.query (statement, {inputFormat: 'CSV'}); clickhouseStream.write('\n'); csvStream.pipe (clickhouseStream);
There is a bug with while serializing the body of request — data aren't separated from query with space or newline.
Also, the inputFormat
option from readme aren't supported.
I'll prepare fix for this.
For now better way is to use format
options instead of FORMAT
statement.
let clickhouseStream = ch.query ('INSERT INTO testTable', {format: 'CSV'});
@gclinux Fixed in @apla/clickhouse@1.6.1
error: Error: Unknown format CSV1550220733
Code
csv file
1550220733,22222,33333