To restart the server (after rebuilding CH or when needed):
scripts/restart_ch.shThis script handles everything: kills any running instance, starts a fresh server, and waits until it is ready. CH takes ~30s to start; always wait before connecting.
Logs: tail -f /tmp/ch-server.log
Connect: ../ClickHouse/build/programs/clickhouse client --port 19000
Only needed when the WASM binary changes (ninja -C build_wasm). For pure ClickHouse C++ changes, just restart the CH server — no WASM reload required.
Use scripts/reload.sh (does all steps below automatically).
Data: ../spatial-bench/sf1/ (6M rows) and ../spatial-bench/sf10/ (60M rows).
Two data modes — run setup scripts once each:
./scripts/link_bench_data.sh # parquet mode: symlinks sf1/sf10 into user_files/
./scripts/import_sf.sh --ch ../ClickHouse/build/programs/clickhouse --sf sf1 # native mode
./scripts/import_sf.sh --ch ../ClickHouse/build/programs/clickhouse --sf sf10 # native modeWire protocol selection with "--wire-protocol" argument. Valid options:
- "col" for COLUMNAR_V1
- "cb" for ColumnBinary
Files are symlinked into ClickHouse's user_directory. For direct query via ClickHouse client use relative path to it like file('sf1/trip.parquet')
Test server is running on port 19000.