v.20.11New Feature

Add print_query_id Option to ClickHouse Client

Add a new option print_query_id to clickhouse-client. It helps generate arbitrary strings with the current query id generated by the client. Also print query id in clickhouse-client by default. #15809 (Amos Bird).
Added a new print_query_id option to clickhouse-client that allows users to generate arbitrary strings containing the current query ID, and enabled printing the query ID by default in clickhouse-client.

Why it matters

This feature provides users with the ability to easily access and display the unique query ID generated by the clickhouse-client for each query. It helps in tracking, logging, and debugging queries by making the query ID more accessible and visible.

How to use it

Users can enable the feature by using the --print_query_id option in the clickhouse-client. By default, clickhouse-client will now print the query ID with each query's output, and users can customize the output format to include the query ID wherever needed.