v.18.12New Feature

Ctrl+C in ClickHouse Client Clears Entered Query

Ctrl+C in clickhouse-client clears a query that was entered. #2877
Enhanced clickhouse-client behavior: Ctrl+C now clears the current query input instead of closing the client.

Why it matters

This feature improves user experience by preventing accidental termination of the clickhouse-client session when cancelling an ongoing query input. Instead of exiting, users can now clear the entered query and start fresh, making interactive work more efficient and less error-prone.

How to use it

Simply press Ctrl+C while typing a query in the clickhouse-client. This action will clear the current query input, allowing you to re-enter your query without closing the client session.