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).Why it matters
This feature provides users with the ability to easily access and display the unique query ID generated by theclickhouse-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.