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
var stream = ch.query ("SELECT 1 FORMAT CSV"); // or var stream = ch.query ("SELECT 1",format: 'CSV');
stream.on ('data', function (row) {
console.log(row);
});
not work return nothing
when
var stream = ch.query ("SELECT 1 ");
it works
The text was updated successfully, but these errors were encountered:
yandex/clickhouse-server:20.3.21.2 none of these work:
stream=clickHouseCliento.query('SELECT 1',{format: 'CSV'})// makes RecordStream with format CSVstream.on('data',console.log).on('end',()=>console.log('end'))// console output: end
stream=clickHouseCliento.query('SELECT 1 FORMAT CSV',{})// makes RecordStream with format JSONCompactstream.on('data',console.log).on('end',()=>console.log('end'))// console output: end
stream=clickHouseCliento.query('SELECT 1 FORMAT CSV',{omitFormat:true})// makes RecordStream with format JSONCompactstream.on('data',console.log).on('end',()=>console.log('end'))// console output: end
stream=clickHouseCliento.query('SELECT 1 FORMAT CSV',{omitFormat:true,readonly:true})// makes RecordStream with format JSONCompactstream.on('data',console.log).on('end',()=>console.log('end'))// console output: end
Only JSON streams are working:
clickHouseCliento.query('SELECT 1').on('data',console.log).on('end',()=>console.log('end'))// [ 1 ]\n end
var stream = ch.query ("SELECT 1 FORMAT CSV"); // or var stream = ch.query ("SELECT 1",format: 'CSV');
stream.on ('data', function (row) {
console.log(row);
});
not work return nothing
when
var stream = ch.query ("SELECT 1 ");
it works
The text was updated successfully, but these errors were encountered: