Open peaksnail opened 4 years ago
Hi! I've tried to reproduce your case
var ClickHouse = require('@apla/clickhouse');
var ch = new ClickHouse({host: '127.0.0.1', port: 8123});
ch.query(
'SELECT sum(number), number % 2 AS isEven FROM (SELECT * FROM system.numbers LIMIT 10) GROUP BY isEven WITH TOTALS',
{
dataObjects: true,
syncParser: true
},
console.log,
)
and it works fine.
It may be an unexpected proxy response or some edge case with your data. It would be great if you can check raw response or even paste it here
curl -v http://localhost:8123/ --data-urlencode 'query=YOUR SELECT QUERY HERE'
hi
It failed when using
with totals
in queryversion v1.6.2
sql
query options
output
is it a bug or is there any option to handle it?
thanks