Skip to content

clickhouse-parquet: run queries through clickhouse-server - #3158

Merged
alexey-milovidov merged 5 commits into
mainfrom
clickhouse-local-tmp
Nov 10, 2026
Merged

alexey-milovidov merged 5 commits into
mainfrom
clickhouse-local-tmp

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

clickhouse-parquet and clickhouse-parquet-partitioned now run clickhouse-server from the entry directory (the same setup as clickhouse-iceberg: config.yaml, users.yaml, data in server-data/) and send queries with clickhouse-client, instead of starting clickhouse-local for every query. With a server, the concurrent QPS test makes sense, so these entries no longer skip it (they used to set BENCH_CONCURRENT_DURATION=0 and BENCH_RESTARTABLE=no). The cold runs now restart the server, like the other server entries.

./load symlinks the downloaded Parquet files into the server's user_files directory and creates the File(Parquet) table from create.sql. There is still no ingest step: the files are read in place, and data-size is the size of the Parquet files. The embedded tag is dropped.

This also replaces the first version of this PR, which added --tmp to clickhouse-local. That was needed because since ClickHouse 26.11 (ClickHouse/ClickHouse#116042) clickhouse-local keeps its databases in ~/.local/share/clickhouse-local and the per-query CREATE TABLE hits fails 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_*.parquet files and one hits.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

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]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

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]>
@alexey-milovidov alexey-milovidov changed the title clickhouse-parquet: run clickhouse-local with --tmp (merge with 26.11) clickhouse-parquet: run queries through clickhouse-server Nov 8, 2026
@alexey-milovidov alexey-milovidov added the machine:all PR benchmark on every machine type label Nov 9, 2026
…itioned (c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl)
@github-actions

Copy link
Copy Markdown
Contributor

Results for clickhouse-parquet are ready for: c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl.
Results for clickhouse-parquet-partitioned are ready for: c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl.
The result files are committed as af04004.
Preview of the benchmark page with these results · Comparison with the previous results

Logs:

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Results for clickhouse-parquet are ready for: t3a.small.
Results for clickhouse-parquet-partitioned are ready for: t3a.small.
The result files are committed as 759aa62.

Logs:

Preview of the benchmark page with these results · Comparison with the previous results

@alexey-milovidov
alexey-milovidov marked this pull request as ready for review November 10, 2026 10:40
# 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
@alexey-milovidov
alexey-milovidov merged commit c6f64f5 into main Nov 10, 2026
3 of 4 checks passed
alexey-milovidov added a commit to jtigani/ClickBench that referenced this pull request Nov 15, 2026
…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]>

This branch was successfully deployed

No deployments
benchmark-approval — 6d551faf Deployed Nov 10, 2026 by alexey-milovidov via launch #1136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

machine:all PR benchmark on every machine type

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant