v.20.5Improvement

Remove Trailing Whitespaces from Queries in ClickHouse Client

Remove trailing whitespaces from formatted queries in clickhouse-client or clickhouse-format in some cases. #11325 (alexey-milovidov).
Remove trailing whitespaces from formatted queries in clickhouse-client and clickhouse-format in certain cases to improve query readability.

Why it matters

This feature addresses the issue of unnecessary trailing whitespace in formatted SQL queries, which can cause confusion and make the output less clean. By trimming these spaces, it enhances the clarity and usability of the query formatting output.

How to use it

This improvement is applied automatically when using the clickhouse-client or clickhouse-format commands to format queries. No additional configuration or flags are required.