v.20.5Improvement

Suppress Output of Cancelled Queries in ClickHouse Client

Suppress output of cancelled queries in clickhouse-client. In previous versions result may continue to print in terminal even after you press Ctrl+C to cancel query. This closes #9473. #11342 (alexey-milovidov).
Suppresses the output of cancelled queries in clickhouse-client, preventing results from printing after cancelling a query with Ctrl+C.

Why it matters

In previous versions, query results could still appear in the terminal even after a user cancelled the query using Ctrl+C. This feature addresses that issue by ensuring no output is shown when a query is cancelled, improving user experience and interaction clarity.

How to use it

Users simply need to cancel their running queries in clickhouse-client using Ctrl+C as usual. The client will automatically suppress any output from the cancelled query without additional configuration.