apla / node-clickhouse

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

Add FORMAT to watch queries. #70

Open btimby opened 3 years ago

btimby commented 3 years ago

WATCH queries are used with LIVE VIEWS. They work like a select statement. I am using LIVE VIEWS and it took me forever to figure out why results were not streaming for this query (but did for other queries).

My workaround was to append FORMAT JSON to the query. This PR will allow this to happen automatically.