Skip to content

Add Krishiv - #3673

Merged
alexey-milovidov merged 6 commits into
mainfrom
krishiv
Nov 29, 2026
Merged

alexey-milovidov merged 6 commits into
mainfrom
krishiv

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Adds Krishiv, an Apache-2.0 Spark-compatible SQL/DataFrame engine in Rust (no JVM), embedded in Python. Announcement: https://krishiv.ai/blog/krishiv-0-2-10x-faster-than-spark

Two entries, krishiv (single hits.parquet) and krishiv-partitioned (hits_*.parquet):

  • krishiv[pyarrow]==0.3.0 from PyPI; one session lives in a FastAPI server (server.py, the same pattern as daft-parquet), so hot runs reuse the session.
  • load only registers the hits view over the files in place, with timestamp_seconds(EventTime) and date_from_unix_date(EventDate); spark.sql.parquet.binaryAsString handles the BINARY strings of the partitioned files.
  • Queries are spark/queries.sql; each timing includes materializing the full result as an Arrow table.

Local checks (aarch64): all 43 queries succeed on a 1.5M-row sample (compared with ClickHouse: equal up to ties under LIMIT/OFFSET, timestamp formatting, and Spark semantics of length in characters, . in regexps, and the true mean for AVG(UserID)), and on 10 partitions (10M rows) of the partitioned set, peak RSS ~5 GB. Full-size results will come from the PR benchmark run.

🤖 Generated with Claude Code

Krishiv (https://github.com/KrishivAI/krishiv-engine) is an Apache-2.0
Spark-compatible engine in Rust, embedded in Python. Both entries keep one
session in a FastAPI server and query hits.parquet / hits_*.parquet in place
with the Spark SQL queries.

Announcement: https://krishiv.ai/blog/krishiv-0-2-10x-faster-than-spark

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alexey-milovidov
alexey-milovidov deployed to benchmark-approval November 28, 2026 17:52 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Results for krishiv are ready for: c6a.4xlarge.
Results for krishiv-partitioned are ready for: c6a.4xlarge.
The result files are committed as 1c3368b.
Preview of the benchmark page with these results

Logs:

@alexey-milovidov alexey-milovidov added the machine:all PR benchmark on every machine type label Nov 28, 2026
@alexey-milovidov
alexey-milovidov deployed to benchmark-approval November 28, 2026 18:42 — with GitHub Actions Active
…c6a.4xlarge, c6a.metal, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl)
@github-actions

Copy link
Copy Markdown
Contributor

Results for krishiv are ready for: c6a.2xlarge, c6a.4xlarge, c6a.metal, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl.
Results for krishiv-partitioned are ready for: c6a.2xlarge, c6a.4xlarge, c6a.metal, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl.
The result files are committed as f6118d0.
Preview of the benchmark page with these results

Logs:

@github-actions

Copy link
Copy Markdown
Contributor

Results for krishiv are ready for: c6a.large, c6a.xlarge.
Results for krishiv-partitioned are ready for: c6a.large, c6a.xlarge.
The result files are committed as ac7d804.
Preview of the benchmark page with these results

Logs:

@github-actions

Copy link
Copy Markdown
Contributor

Results for krishiv are ready for: t3a.small.
Results for krishiv-partitioned are ready for: t3a.small.
The result files are committed as 690f7cd.
Preview of the benchmark page with these results

Logs:

The randomized group 4945d972-5bdc-45b7-a9e8-335c2d2acc7d (c6a.4xlarge,
run https://github.com/ClickHouse/ClickBench/actions/runs/46177434303)
places both entries at the challenger level (the gap to ClickHouse widens
2.0x and 3.7x), matching their category. Some of their failures were not
the engine's:

- `ClientEventTime` and `LocalEventTime` were Unix seconds in the `hits`
  view, so `hour(ClientEventTime)` failed; convert them like `EventTime`.
- The translator kept `DOUBLE PRECISION` and `VARCHAR` without a length,
  which the Spark dialect rejects; random/systems/krishiv*/notes.md tells it
  the dialect rules (checked against Krishiv 0.3.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alexey-milovidov

alexey-milovidov commented Nov 29, 2026 •

Copy link
Copy Markdown
Member Author

Randomized trial: group 4945d972-5bdc-45b7-a9e8-335c2d2acc7d (c6a.4xlarge, 1B rows, 100 queries x 3, 4 concurrent; run https://github.com/ClickHouse/ClickBench/actions/runs/46177434303), with the standard results of this PR for the gap:

System Restarts Lost server Timeouts Gap, random Gap, standard Widening Level
krishiv 0 0 8 10.56 5.22 2.03 challenger
krishiv-partitioned 0 0 4 23.51 6.34 3.71 challenger

So the category stays challenger (production fails on the timeouts and a widening above 2).

Failures: mostly UNABLE_TO_ACQUIRE_MEMORY with 4 concurrent queries (45 and 55 queries), which is the engine at its defaults. Some were not the engine's, fixed in fe906f6: ClientEventTime/LocalEventTime stayed Unix seconds in the view, and the translator kept DOUBLE PRECISION and size-less VARCHAR (now random/systems/krishiv*/notes.md).

HTML report of the group: https://pastila.nl/?0006ad87/d5467f2ffada2787e20d3865bfd2918d.html.gz

@github-actions

Copy link
Copy Markdown
Contributor

@alexey-milovidov
alexey-milovidov merged commit 5ea38fd into main Nov 29, 2026
3 of 4 checks passed
@alexey-milovidov alexey-milovidov self-assigned this Nov 29, 2026

This branch is waiting to be deployed

1 waiting deployment
benchmark-approval — fe906f65 Waiting Nov 29, 2026 by alexey-milovidov via launch #1551
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