v.21.9Improvement

Fix Progress Bar Output in clickhouse-local

Fix incorrect output with --progress option for clickhouse-local. Progress bar will be cleared once it gets to 100% - same as it is done for clickhouse-client. Closes #17484. #26128 (Kseniia Sumarokova).
Fixes the incorrect output behavior of the --progress option in clickhouse-local by ensuring the progress bar is cleared when it reaches 100%, aligning its behavior with clickhouse-client.

Why it matters

The change resolves the issue where the progress bar in clickhouse-local did not clear upon completion, causing confusion or cluttered output. This improvement enhances user experience by providing consistent and clean progress display feedback during local ClickHouse operations.

How to use it

Use the --progress option with clickhouse-local as usual; the progress bar will now automatically clear when reaching 100%. No additional configuration is needed.