Skip to content

Krishiv 0.3.0

Latest

Choose a tag to compare

@techgopal techgopal released this 26 Nov 00:21
· 91 commits to main since this release

Krishiv 0.3 grows from an embedded engine into a server you can put in front of other tools and other engines' tables.

Highlights

  • TPC-H SF10 runs at parity with DuckDB: 0.98x of DuckDB's time (geomean), 22/22 queries, measured on 2026-11-21 on one
    AMD Ryzen 5 3600 (6 cores, 12 threads, 64 GB), both engines on the same data with the same row counts. Reproduce it with
    uv run krishiv-bench reproduce --suite tpch --sf 10 --reps 3 (see bench/README.md). This is the only DuckDB comparison made for 0.3.0.
  • Delta Lake tables you can read and write. Reads handle deletion vectors, column mapping, type widening, partition
    pruning and data skipping. INSERT, INSERT OVERWRITE, CTAS, df.write.format("delta"), DELETE, UPDATE and MERGE
    commit with Delta's conflict rules (changed files are rewritten; deletion vectors are not written), and
    krishiv.write.idempotencyKey makes a retried write commit once.
  • Iceberg tables you can read. Position, equality and deletion-vector deletes are applied, and tables of a declared
    Iceberg REST catalog can be queried. Writing Iceberg tables from SQL or the DataFrame API is not available in 0.3:
    the connector's append, overwrite and row-level code is in place, but no SQL or DataFrame write reaches it yet.
  • ASOF JOIN: match each left row to the closest right row by a time or ordered key, with an optional tolerance and
    INNER or LEFT semantics.
  • Metric views (Spark 4.2): CREATE VIEW ... WITH METRICS LANGUAGE YAML, read with measure(<name>).
  • Arrow Flight SQL on the Spark Connect port: ADBC and Arrow JDBC drivers run statements, prepared statements and
    catalog metadata calls with the same sessions, authentication and cancellation as Spark Connect.
  • Python UDFs on the server in sandboxed worker pools (one per principal and session): scalar, pandas and Arrow UDFs,
    grouped, cogrouped and map UDFs, window UDFs and table functions, with an OS sandbox (Landlock, seccomp).
  • Workload management: resource groups limit concurrency, queueing, memory and scanned bytes per group and route
    queries by user, source, tag and statement type; queries can be cancelled by tag.
  • A web console in three places (krishiv.ui(), krishiv::ui(&session) and krishiv server) with a catalog
    browser, a SQL editor, a plan view shaded by metric, History, Sessions, Workload and Advisor pages.
  • Server security: TLS, mTLS and OIDC bearer tokens, with path and object-store access confined by allow lists.
  • More Spark Connect: AnalyzePlan, Config and Interrupt, resumable result streams, DataFrame.observe, and
    spark.catalog.

Fixed in the release candidate

  • Delta: writing a table under a symlinked directory (macOS /tmp and /var point to /private/...) was refused; local table roots are now compared on canonical paths on both sides (#1027).

Install

  • Python: pip install krishiv (or pip install krishiv-compat for x86-64 CPUs without AVX2)
  • Rust: cargo add krishiv (crates.io 0.3.0)

Full changelog: CHANGELOG.md · Upgrading from 0.2: docs/guides/upgrading-from-0.2.md