mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Add an optional `command_pipe_capacity` setting for executable commands and pass it through `ShellCommandSource` to `ShellCommand`, where it uses the existing `PipeFDs::tryIncreaseSize` helper on the command pipes before `exec`. The generated C-body drivers request a 1 MiB pipe capacity and the wrapper also tries to increase its own `stdin` and `stdout` pipe capacity. This can reduce short-write wakeups in the `DockerC` path, while preserving the previous default for other executable command users. PR: https://github.com/ClickHouse/ClickHouse/pull/105131 Tests: - `ninja -C build programs/clickhouse` - `python3 -m py_compile programs/server/user_defined_executable_function_drivers/c_driver_common.py` - `CLICKHOUSE_BINARY=./build/programs/clickhouse tests/queries/0_stateless/04241_executable_udf_driver.sh` - `CLICKHOUSE_BINARY=./build/programs/clickhouse tests/queries/0_stateless/04242_executable_udf_driver_errors.sh`