v.20.11Improvement

ClickHouse-Local Creates Temporary Folder if None Exists

If there is no tmp folder in the system (chroot, misconfigutation etc) clickhouse-local will create temporary subfolder in the current directory. #16280 (filimonov).
ClickHouse-local now creates a temporary subfolder in the current directory if the system's temporary folder is unavailable.

Why it matters

This feature addresses issues where clickhouse-local fails due to missing or inaccessible system temporary directories (e.g., in chroot environments or misconfigurations). By creating a temporary subfolder locally, it ensures clickhouse-local can operate smoothly without dependency on the system's tmp folder.

How to use it

No explicit user action is required. When clickhouse-local detects the absence of a system temporary directory, it automatically creates a temporary subfolder in the current working directory and uses it for temporary files.