v.24.5Improvement

os_user and client_hostname properly configured for command line suggestions in clickhouse-client

os_user and client_hostname are now correctly set up for queries for command line suggestions in clickhouse-client. This closes #63430. #63433 (Alexey Milovidov).
os_user and client_hostname are now correctly set for queries executed during command line suggestions in clickhouse-client.

Why it matters

This feature fixes an issue where os_user and client_hostname were not properly set when generating command line suggestions in clickhouse-client. It ensures accurate user and client information is available during query completions, improving auditing and context accuracy.

How to use it

No additional configuration is needed. The fix is applied automatically in clickhouse-client when using command line suggestions.