v.25.10Improvement

Add --semicolons_inline option in clickhouse-format

Add --semicolons_inline option in clickhouse-format to format queries so that semicolons are placed on the last line instead of on a new line. #88018 (Jan Rada).
Added the --semicolons_inline option to the clickhouse-format tool to place semicolons at the end of the last query line instead of on a new line.

Why it matters

This feature improves query readability and formatting preferences by allowing users to control the placement of semicolons when formatting SQL queries, aligning with common coding styles where semicolons appear inline.

How to use it

Use the clickhouse-format command with the --semicolons_inline option enabled. For example:

clickhouse-format --semicolons_inline <query.sql>

This command reformats the SQL query so that the semicolon appears inline at the end of the last line.