mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Rename the example `c_function_body` driver to `DockerC` and move the shared C-body implementation into `c_driver_common.py`. Add `GVisorC` and `UnsafeC` wrappers/configs that reuse the same generator. `GVisorC` keeps the Docker command shape but adds `--runtime=runsc` for running the compiled function. `UnsafeC` compiles locally and emits the compiled `user_func` path directly without Docker or gVisor. PR: https://github.com/ClickHouse/ClickHouse/pull/105131 Tests: - `python3 -m py_compile programs/server/user_defined_executable_function_drivers/c_driver_common.py` - `CLICKHOUSE_C_DRIVER_COMPILE_LOCAL=1 docker_c_create.sh --return UInt64 --args 'x UInt64, y UInt64'` - `CLICKHOUSE_C_DRIVER_COMPILE_LOCAL=1 gvisor_c_create.sh --return UInt64 --args 'x UInt64, y UInt64'` - `unsafe_c_create.sh --return UInt64 --args 'x UInt64, y UInt64'` - `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`