Skip to content

JSONBench: Add Polars - #3572

Merged
alexey-milovidov merged 2 commits into
ClickHouse:mainfrom
suleymanngulter:add-jsonbench-polars
Nov 26, 2026
Merged

alexey-milovidov merged 2 commits into
ClickHouse:mainfrom
suleymanngulter:add-jsonbench-polars

Conversation

@suleymanngulter

Copy link
Copy Markdown
Contributor

This PR adds Polars to JSONBench (json/polars/).

Summary

  • Uses the shared json/lib/benchmark-common.sh driver (BENCH_RESTARTABLE=yes) with a lightweight stdlib HTTP query server (server.py, modeled after ../../polars/ and ../opteryx/), enabling streaming execution and disabling all table/string output truncation.
  • Loads .json.gz Bluesky NDJSON files in parallel into Zstd-compressed Parquet shards under bluesky/ as a single String column j without flattening at insertion time (retains_structure: "yes"), skipping invalid UTF-8 / split >64 KiB lines (load, load.py).
  • Implements the 5 JSONBench queries using Polars LazyFrame expressions (str.json_path_match) over pl.scan_parquet("bluesky/*.parquet") (queries.sql).

@suleymanngulter
suleymanngulter deployed to benchmark-approval November 24, 2026 18:13 — with GitHub Actions Active
@alexey-milovidov alexey-milovidov added the json-size:1000 Run JSONBench systems of this PR on the 1000m dataset label Nov 25, 2026
@alexey-milovidov
alexey-milovidov deployed to benchmark-approval November 25, 2026 19:11 — with GitHub Actions Active
1m, 10m, 100m (2026-11-24) and 1000m (2026-11-25) on m6i.8xlarge, collected from `sink.data`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alexey-milovidov alexey-milovidov self-assigned this Nov 26, 2026
@alexey-milovidov
alexey-milovidov merged commit 4de1ea1 into ClickHouse:main Nov 26, 2026
1 of 2 checks passed

This branch is waiting to be deployed

1 waiting deployment
benchmark-approval — 8cfcd7d5 Waiting Nov 26, 2026 by alexey-milovidov via launch #1466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

json-size:1000 Run JSONBench systems of this PR on the 1000m dataset

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants