v.22.5Improvement

Proper cancellation of INSERT queries in clickhouse-client and clickhouse-local

Properly cancel INSERT queries in clickhouse-client/clickhouse-local. #36710 (Azat Khuzhin).
Properly cancel INSERT queries executed via clickhouse-client and clickhouse-local tools.

Why it matters

This feature addresses the issue where INSERT queries could not be gracefully cancelled when run through clickhouse-client or clickhouse-local. It improves user experience by enabling reliable query termination and resource cleanup during interrupted or cancelled data insert operations.

How to use it

Users can now interrupt and cancel ongoing INSERT queries in clickhouse-client or clickhouse-local simply by using standard cancellation signals (e.g., Ctrl+C) as the proper cancellation handling has been implemented internally.