Repository navigation
clickhouse-parquet: run queries through clickhouse-server - #3158
Conversation
Since ClickHouse 26.11 (PR ClickHouse/ClickHouse#116042), clickhouse-local keeps its databases in ~/.local/share/clickhouse-local by default, so the CREATE TABLE that ./query runs before every query fails with TABLE_ALREADY_EXISTS from the second query on. --tmp restores a temporary directory per run. It does not exist before 26.11, so merge this when 26.11 is released. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Instead, let's run it with clickhouse-server, so we will measure QPS. |
Instead of a `clickhouse-local` process per query, run `clickhouse-server` from the entry directory (as `clickhouse-iceberg` does) and query the `File(Parquet)` table with `clickhouse-client`. This enables the concurrent QPS test, which was skipped for the single-process engine, and also avoids the 26.11 `clickhouse-local` persistence issue without `--tmp`, so it works with any release. The Parquet files are symlinked into the server's `user_files` directory and read in place. #3158 (comment) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…itioned (c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl)
|
Results for Logs:
|
…itioned (t3a.small)
|
Results for Logs:
Preview of the benchmark page with these results · Comparison with the previous results |
# Conflicts: # clickhouse-parquet-partitioned/results/20261109/c8g.metal-48xl.json # clickhouse-parquet-partitioned/results/20261110/c6a.2xlarge.json # clickhouse-parquet-partitioned/results/20261110/c6a.4xlarge.json # clickhouse-parquet-partitioned/results/20261110/c6a.large.json # clickhouse-parquet-partitioned/results/20261110/c6a.metal.json # clickhouse-parquet-partitioned/results/20261110/c6a.xlarge.json # clickhouse-parquet-partitioned/results/20261110/c7a.metal-48xl.json # clickhouse-parquet-partitioned/results/20261110/c8g.4xlarge.json # clickhouse-parquet-partitioned/results/20261110/t3a.small.json # clickhouse-parquet/results/20261110/c6a.2xlarge.json # clickhouse-parquet/results/20261110/c6a.4xlarge.json # clickhouse-parquet/results/20261110/c6a.large.json # clickhouse-parquet/results/20261110/c6a.metal.json # clickhouse-parquet/results/20261110/c6a.xlarge.json # clickhouse-parquet/results/20261110/c7a.metal-48xl.json # clickhouse-parquet/results/20261110/c8g.4xlarge.json # clickhouse-parquet/results/20261110/c8g.metal-48xl.json # clickhouse-parquet/results/20261110/t3a.small.json
…use-server Instead of a `clickhouse-local` process per query, run `clickhouse-server` from the entry directory and send queries with `clickhouse-client`, the same way as `clickhouse-parquet` (ClickHouse#3158) and `clickhouse-iceberg`. This enables the concurrent QPS test, and the hot tries keep the in-memory caches of the server (the query condition cache, and for S3 also the Parquet metadata cache), as for other server entries. - `clickhouse-datalake(-partitioned)`: the tmpfs filesystem cache moves from `clickhouse-local.yaml` to `config.d/filesystem_cache.yaml`, and `./flush-caches` still removes it before each cold try, while the server is stopped. - `clickhouse-vortex(-partitioned)`: the Parquet to Vortex conversion runs in the server too, and the Vortex files are in the server's `user_files`. `clickhouse-local` started in the entry directory would read the server's `config.yaml`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
clickhouse-parquetandclickhouse-parquet-partitionednow runclickhouse-serverfrom the entry directory (the same setup asclickhouse-iceberg:config.yaml,users.yaml, data inserver-data/) and send queries withclickhouse-client, instead of startingclickhouse-localfor every query. With a server, the concurrent QPS test makes sense, so these entries no longer skip it (they used to setBENCH_CONCURRENT_DURATION=0andBENCH_RESTARTABLE=no). The cold runs now restart the server, like the other server entries../loadsymlinks the downloaded Parquet files into the server'suser_filesdirectory and creates theFile(Parquet)table fromcreate.sql. There is still no ingest step: the files are read in place, anddata-sizeis the size of the Parquet files. Theembeddedtag is dropped.This also replaces the first version of this PR, which added
--tmptoclickhouse-local. That was needed because since ClickHouse 26.11 (ClickHouse/ClickHouse#116042)clickhouse-localkeeps its databases in~/.local/share/clickhouse-localand the per-queryCREATE TABLE hitsfails the second time. The server setup does not depend on that, works with the current release, and does not have to wait for 26.11.Checked locally with a master build on three small generated
hits_*.parquetfiles and onehits.parquet:start,check,load, queries, a stop/start cycle (the table is still there and reads all files through the symlinks), 10 concurrent queries,data-size,stop.Related: #3157
Related: #3158 (comment)
🤖 Generated with Claude Code