Skip to content

Add clickhouse-vortex and clickhouse-vortex-partitioned - #3157

Merged
alexey-milovidov merged 2 commits into
mainfrom
clickhouse-vortex
Nov 10, 2026
Merged

alexey-milovidov merged 2 commits into
mainfrom
clickhouse-vortex

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Adds two entries, clickhouse-vortex (a single file) and clickhouse-vortex-partitioned (100 files). ClickHouse master reads and writes the Vortex format, so both entries install the master build (CLICKHOUSE_BRANCH=master), like clickhouse-iceberg does.

  • ./load converts the downloaded Parquet files to Vortex with ClickHouse itself (INSERT INTO hits SELECT * FROM file('hits.parquet', Parquet) into File(Vortex)), the same way duckdb-vortex converts them with DuckDB. Then it deletes the Parquet files.
  • ./query runs clickhouse-local over File(Vortex, ...), with the same schema and queries as clickhouse-parquet.
  • clickhouse-local runs with --tmp. Since ClickHouse PR #116042 (in 26.11), clickhouse-local keeps its databases in ~/.local/share/clickhouse-local by default. The CREATE TABLE hits of every query would then fail with TABLE_ALREADY_EXISTS from the second query on.
  • Writing one Vortex file is single-threaded, and the writer keeps most of the file in memory until it finishes. The partitioned load therefore converts the files in parallel, with at most one process per 3 GB of MemAvailable (one partition peaks at about 2.5 GB). The single file peaked at about 22 GB of RSS, so expect clickhouse-vortex to fail on the smallest machines.

A local run on aarch64 (ClickHouse 26.11.1.1670), on a busy shared host, so the timings are only indicative:

  • All 43 queries succeed on both entries, and the results match (count() = 99997497, date range, Q20).
  • Data size is 23.7 GB for the single file and 22.8 GB for the partitioned files. DuckDB's Vortex files are 16.0 GB. The difference is in the string columns: ClickHouse writes String as Arrow Binary, not Utf8, and Vortex compresses Binary much worse. For example, URL in the first partition is 47 MB written by ClickHouse against 25 MB written by DuckDB. Numeric columns are the same size.

🤖 Generated with Claude Code

ClickHouse master reads and writes the Vortex format. The entries download
the master build, convert the downloaded Parquet files to Vortex with
ClickHouse itself in ./load, and query them with clickhouse-local through
File(Vortex). clickhouse-local runs with --tmp: since 26.11 it keeps its
databases in ~/.local/share/clickhouse-local, and the CREATE TABLE of every
query would fail from the second query on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ioned (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-vortex are ready for: c6a.4xlarge, c6a.metal, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl.
Results for clickhouse-vortex-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 1f1a136.
Preview of the benchmark page with these results
The run of clickhouse-vortex on c6a.2xlarge did not produce results.
The run of clickhouse-vortex on c6a.large did not produce results.
The run of clickhouse-vortex on c6a.xlarge did not produce results.
The run of clickhouse-vortex on t3a.small did not produce results.
The run of clickhouse-vortex-partitioned on t3a.small did not produce results.

Logs:

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