v.23.6New Feature

Added --rename_files_after_processing option

Added option --rename_files_after_processing <pattern>. This closes #34207. #49626 (alekseygolub).
Added the option --rename_files_after_processing <pattern> to control file renaming after processing data files.

Why it matters

This feature allows users to specify a pattern to rename data files after they have been processed, helping with file management and preventing reprocessing of the same files. It solves the problem of handling processed files in ingestion workflows, ensuring better automation and operational clarity.

How to use it

When starting a ClickHouse process that ingests files, pass the option --rename_files_after_processing <pattern> on the command line, where <pattern> is the desired file renaming pattern applied after processing completes.