apla / node-clickhouse

Yandex ClickHouse driver for nodejs
MIT License
217 stars 50 forks source link

why it is complete when the err happen #43

Closed gclinux closed 4 years ago

gclinux commented 5 years ago

// insert row data var clickhouseStream = clickHouse.query (statement, {inputFormat: 'TSV'}, function (err) {

console.log ('Insert complete!');

});

gclinux commented 5 years ago

the code is form readme

nezed commented 4 years ago

Looks like you do not checking for err argument value, nor listening for stream error.

Take a look at https://github.com/apla/node-clickhouse#selecting-large-dataset