Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</div>

## 安装方式
目前,chDB 只支持在 macOS(x86_64 和 ARM64)和 Linux 上的 Python 3.9+。
Python 包支持 macOS、Linux(x86_64 / ARM64)上的 Python 3.9+。其他绑定的版本、发布状态和功能见[跨语言能力矩阵](README.md#language-binding-capability-matrix);浏览器可试用实验性的 [WebAssembly 版本](https://wasm.chdb.io/)。
```bash
pip install chdb
```
Expand Down
51 changes: 27 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,32 +626,35 @@ Please refer to [VERSION-GUIDE.md](VERSION-GUIDE.md) for more details.

## Language Binding Capability Matrix

The table below summarizes the user-facing capabilities of the chdb-io language bindings. It uses published versions where available; unreleased main-branch work is called out explicitly.
Checked 2026-11-30 against package registries and tagged source. RC, source-only and unreleased `main` features are marked; runtime suites were not rerun. Binding and engine versions are independent. Use stable core `26.11.1` for native installs unless a package requires its bundled engine.

**Data date:** 2026-09-28

| Capability / dimension | Python<br>`chdb 4.4.0` | C / C++<br>`core 26.7.3` | Node.js<br>`chdb 3.4.0` | Go<br>`v2.2.0` | Rust<br>`1.3.1 published / 2.0 main` | Java<br>`1.0.0-SNAPSHOT` | Ruby<br>`0.1.0` | .NET<br>`0.0.3.69` | Bun<br>`1.1.0 source` | Zig<br>`0.0.9` | WASM<br>`0.4.0` |
| Capability / dimension | Python<br>`chdb 4.5.1` | C / C++<br>`core 26.11.1` | Node.js<br>`chdb 3.6.0` | Go<br>`v2.4.0` + Arrow RC | Rust<br>`2.2.1` | Java<br>`1.1.0` | Ruby<br>`0.2.0` | .NET<br>`0.0.3.69` + main | Bun<br>`2.0.0 source` | Zig<br>`0.0.10 source` | WASM<br>`0.4.0` |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Maturity | Stable main package | Core engine | Active release | Active release | 2.0 main, unpublished | Maven WIP | Early | Early | Experimental | Early | Experimental |
| Install / distribution | `pip` | release / bash | npm native packages | `go get` / embedded | Cargo + static; can auto-download `libchdb` | Maven modules; JDBC + native jars WIP | RubyGems | NuGet + manual lib | Source build | Zig package | npm wasm |
| Session / persistent path | Multi-connection same path | Multi-connection same path | Multi-connection same path | Multi-connection same path | Multi-connection same path | Multi-connection same path | Single instance | No real Session | No real Session | Basic connection | Worker connection |
| Durable V1 | Supported | ABI primitives | Supported | Supported | 2.0 main only | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported |
| Arrow output bytes | Supported | Supported | Supported | Supported | Supported | Not supported | Supported | Supported | Incomplete | Limited | Supported |
| Typed Arrow API | `pyarrow.Table` | No language type | `apache-arrow` | Not supported | `RecordBatch` | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported |
| Arrow zero-copy | Partial | C Data API | Input side | Not supported | Supported | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported |
| Arrow input / registration | Python objects | C Data API | register table | Not supported | bulk insert | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported |
| Streaming result | Supported | Supported | Supported | Supported | Supported | Supported | Supported | Not supported | Not supported | Supported | Supported |
| Parameter binding | Basic support | ABI primitives | server-side | Client interpolation | server-side | server-side | Client escaping | Not supported | Not supported | Not supported | Not supported |
| Driver / ecosystem API | DBAPI / ADBC | C ABI | `@clickhouse/client` | `database/sql` | Not supported | JDBC | SQLite style | Not supported | None | None | None |
| Notable feature | DataStore | Embedded C ABI | L3 Kysely-style primitives | SQL driver API | Arrow C Data API | Streaming JDBC ResultSet | Ruby-style DSL | Not supported | Bun FFI | Native Zig wrapper | Browser / Worker |

**Session boundary:** chdb-core allows only one active data path per process. "Multi-connection same path" means a binding can open multiple connections on the same data path; concurrent different data paths are uniformly unsupported and require closing before switching.

**Arrow implementation differences:** Python and Node primarily expose Arrow IPC bytes and then convert into language objects. Go raw queries can request Arrow output bytes, but its `database/sql` row path is Parquet-based rather than a typed Arrow API. Rust 2.0 main uses the Arrow C Data Interface, can stream `RecordBatch` values directly, and supports Arrow bulk insert. Java V1 currently uses `RowBinaryWithNamesAndTypes` decoded into JDBC `ResultSet` and does not expose an Arrow Java API.

**Streaming note:** The user-facing stream differs by binding. Go streams formatted result chunks and its SQL driver reads Parquet chunks; Rust can consume result streams, Arrow batch streams, and streaming inserts; Java exposes a forward-only JDBC `ResultSet`; Node/WASM expose async streams; Ruby/Zig expose chunked fetch APIs at the binding layer.

**Notable feature note:** Python DataStore is a pandas-like lazy execution data layer; Node L3 Kysely-style primitives target typed SQL builder use cases; Go's SQL driver API means it integrates with the standard Go `database/sql` package; Rust's Arrow C Data API means Arrow is a first-class data path, not just an output bytes format.
| Release status | [PyPI](https://pypi.org/project/chdb/4.5.1/) | [native release](https://github.com/chdb-io/chdb-core/releases/tag/v26.11.1) | [npm](https://www.npmjs.com/package/chdb/v/3.6.0) | [stable module](https://proxy.golang.org/github.com/chdb-io/chdb-go/v2/@v/v2.4.0.info); separate [Arrow RC](https://proxy.golang.org/github.com/chdb-io/chdb-go/v2/arrow/@v/v0.1.0-rc.1.info) | [crates.io](https://crates.io/crates/chdb-rust/2.2.1); experimental API | [Maven Central GA](https://repo.maven.apache.org/maven2/com/clickhouse/chdb/chdb-jdbc/1.1.0/); Arrow module experimental | [RubyGems](https://rubygems.org/gems/chdb-ruby/versions/0.2.0) | [NuGet](https://www.nuget.org/packages/chdb/0.0.3.69); newer main is not that package | [GitHub v2.0.0](https://github.com/chdb-io/chdb-bun/releases/tag/v2.0.0); npm still 1.0.4 | [source tag](https://github.com/chdb-io/chdb-zig/releases/tag/0.0.10); runtime not revalidated here | [npm](https://www.npmjs.com/package/chdb-wasm/v/0.4.0), experimental |
| Install / distribution | `pip` | Shared / static release assets | npm platform packages | Dynamic / embedded; [static RC](docs/install/go.mdx) | Cargo; dynamic or `static` feature | Central driver + native JAR; optional `chdb-arrow` | Native extension + downloaded engine | NuGet + native lib; main adds runtime packages | Source + Clang; [build with core 26.11.1](docs/install/bun.mdx) | Zig 0.15.2+; Linux x86_64/aarch64 | npm; browser or Node 23+ Worker |
| Session / persistent path | Multi-connection same path | Multi-connection same path | Multi-connection same path | Multi-connection same path | Multi-connection same path | Multi-connection same path | Single database instance | Published path wrapper; main retains per-session connections | Source: one shared native connection, reused per active path | Source connection / path API | Worker-local paths; no verified reload persistence |
| Durable V1 | Supported | ABI primitives | Experimental adapter + native engine | Adapter requires compatible native ABI | Opt-in `durable` / `durable-s3` features | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported |
| Arrow IPC output bytes | Supported | Supported | Supported | Supported in root module | Supported | Not exposed | Supported | Source API; published package unverified | No binary-safe API | No selectable Arrow format (fixed JSONEachRow) | Arrow IPC format not verified here |
| Typed Arrow API | `Table` / `RecordBatch` | C structs, no language type | `apache-arrow` Table / RecordBatch | Optional Arrow RC: Table / RecordBatch | Arrow 59 `RecordBatch` | Optional module: `VectorSchemaRoot` / `ArrowReader` | Not supported | Not supported | Not supported | Not supported | Not supported |
| Direct Arrow C Data / Stream (no IPC) | Supported | Supported | Supported | Optional Arrow RC | Supported | Optional experimental module | Not supported | Not supported | Not supported | Not supported | Native C Data API not exposed |
| Arrow input / registration | `Python(...)`, scoped registration and insert | C Data / Stream registration and insert | Table / batch / async reader registration and insert | Optional Arrow RC: batch / reader scan and insert | Scoped reader registration and direct batch / reader insert | Optional module: batch / owned-reader registration and insert | Not supported | Not supported | Not supported | Not supported | Not supported |
| Streaming result | Formatted chunks and direct Arrow batches | Formatted chunks and Arrow batches | Async chunks and direct Arrow batches; one active stream/session | Formatted chunks; typed batches via Arrow RC | Formatted chunks, Arrow batches; streaming insert | Forward-only JDBC `ResultSet`; Arrow batch reader | Chunked query / fetch / cancel API | Not supported | Not supported | Chunked fetch / cancel API (source) | Async worker result chunks |
| Parameter binding | Named engine parameters | Named ABI | Native named parameters, including direct Arrow queries | Stable: driver interpolation; root RC adds native named parameters | Native named parameters across query / stream / insert | JDBC `PreparedStatement`; named parameters on streaming Arrow queries | Client SQL interpolation | Not supported | Not supported | Not supported | Not supported |
| Driver / ecosystem API | DBAPI / ADBC | C ABI | Experimental `@clickhouse/client` adapter | `database/sql` (no transactions/prepared statements) | No standard database driver in this crate | JDBC; Arrow module is not Java ADBC | SQLite-style API | No ADO.NET provider | None | None | None |

Native connections can share one data path per process. Close all connections before switching paths.

Direct Arrow avoids IPC serialization but may still copy buffers. Go's ordinary `database/sql` rows use Parquet; JDBC `ResultSet` uses `RowBinaryWithNamesAndTypes`. Typed Arrow is a separate API in both bindings.

Go's optional Arrow and static modules select compatible root bindings; the [Go guide](docs/install/go.mdx) covers their build requirements. Rust enables `arrow` by default; `durable` and `durable-s3` are opt-in.

Keep Java's driver, Arrow module and native JAR on the same version. Arrow requires its JVM access flag and a separate connection; it cannot export an existing JDBC result. JDBC transactions and batch updates are unsupported.

Bun `cleanup()` deletes its data directory. Go's `Cleanup()` does so when the last session closes; use `Close()` to preserve data. The .NET main-only capabilities refer to [this source snapshot](https://github.com/chdb-io/chdb-dotnet/tree/88d9e6948e7dd95b4e14de5175713d0db1eb81ab). Zig's typed row decoding is JSON-based, not Arrow.

The browser shell pins WASM 0.3.0 while npm publishes 0.4.0. Worker-local paths do not establish persistence across page reloads.

API guides and source: [Python Arrow](https://github.com/chdb-io/chdb/blob/v4.5.1/docs/python-arrow-direct.md), [Node Arrow](https://github.com/chdb-io/chdb-node/blob/v3.6.0/docs/arrow.md), [Go Arrow RC](https://github.com/chdb-io/chdb-go/blob/v2/arrow/v0.1.0-rc.1/v2/arrow/README.md), [Go named parameters](https://github.com/chdb-io/chdb-go/blob/v2.5.0-rc.2/chdb/driver/driver.go), [Rust Arrow](https://github.com/chdb-io/chdb-rust/blob/v2.2.1/docs/arrow.md), [Java installation](https://github.com/chdb-io/chdb-java/blob/v1.1.0/docs/releases/1.1.0.md) and [Arrow module](https://github.com/chdb-io/chdb-java/blob/v1.1.0/chdb-arrow/README.md), [Ruby streaming](https://github.com/chdb-io/chdb-ruby/blob/v0.2.0/ext/chdb/connection.c), [Bun connections](https://github.com/chdb-io/chdb-bun/blob/v2.0.0/lib/chdb_bun.c), [Zig](https://github.com/chdb-io/chdb-zig/blob/0.0.10/src/chdb.zig), and [WASM API](https://unpkg.com/chdb-wasm@0.4.0/dist/async.d.ts).

## License
Apache 2.0, see [LICENSE](LICENSE.txt) for more information.
Expand Down
3 changes: 2 additions & 1 deletion docs/guides/querying-apache-arrow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ An Arrow `Table` holds batches of columnar data; a `RecordBatchReader` supplies
| --- | --- |
| Query an in-memory `pyarrow.Table` or one-shot `RecordBatchReader` | This guide's [`Python(arrow_table)` example](#querying-apache-arrow); [core reader behavior tests](https://github.com/chdb-io/chdb-core/blob/main/tests/test_arrow_c_stream_protocol.py) for one-shot streams |
| Install chDB and use the existing `ArrowTable` or streaming result formats | [Python installation and examples](/chdb/install/python); [Python API reference](/chdb/api/python) |
| Use direct typed results, incremental batches, scoped registration or bulk insert without IPC | [Python 4.5.1 direct Arrow guide](https://github.com/chdb-io/chdb/blob/v4.5.1/docs/python-arrow-direct.md): `query_arrow`, `query_arrow_batches`, and `chdb.arrow.connect()`; requires core 26.11.1+ |
| Use Arrow with the pandas-like DataStore layer | [DataStore I/O](/chdb/datastore/io) and [class reference](/chdb/datastore/class-reference) — a separate API from `Python(tbl)` |
| Use Arrow Database Connectivity (ADBC), the standard database-driver API for Arrow results or bulk ingest | [ADBC installation and usage](https://clickhouse.com/docs/chdb/install/adbc); ordinary ADBC `BindStream` passes query parameters, not a temporary SQL table like `Python(tbl)` |
| Work on the native Arrow contract or C examples | [Binding contract](https://github.com/chdb-io/chdb-core/blob/main/docs/NATIVE_ARROW_BINDING_CONTRACT.md), [input example](https://github.com/chdb-io/chdb-core/blob/main/examples/chdbArrowTest.c), [query-output example](https://github.com/chdb-io/chdb-core/blob/main/examples/chdbArrowQueryTest.c) |

This is the Python binding's Arrow documentation entry point. `ArrowTable`/`Arrow` result formats serialize Arrow data using its Inter-Process Communication (IPC) format; the pandas-like DataStore Arrow interface is another API. Consult their linked guides rather than assuming identical streaming or ownership behavior.
This is the Python binding's Arrow documentation entry point. `ArrowTable`/`Arrow` result formats serialize Arrow data using its Inter-Process Communication (IPC) format. Python 4.5.1 also exposes direct C Data results through `query_arrow` and `query_arrow_batches`; conversion may still copy data, and partial batch streams must be closed. The pandas-like DataStore Arrow interface and ADBC driver are separate APIs. Consult their linked guides rather than assuming identical streaming or ownership behavior.

## Setup {#setup}

Expand Down
2 changes: 2 additions & 0 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ chDB has the following language bindings:
* [Bun](/chdb/install/bun)
* [C and C++](/chdb/install/c)

Additional bindings include [Java/JDBC](https://github.com/chdb-io/chdb-java), [Ruby](https://github.com/chdb-io/chdb-ruby), [.NET](https://github.com/chdb-io/chdb-dotnet), [Zig](https://github.com/chdb-io/chdb-zig), and experimental [WebAssembly](https://wasm.chdb.io/). Check the [capability matrix](https://github.com/chdb-io/chdb#language-binding-capability-matrix) for published versions, source-only features and platform limits. The [Go guide](/chdb/install/go#static-linking) covers its experimental static build.

## How do I get started? {#how-do-i-get-started}

* If you're using [Go](/chdb/install/go), [Rust](/chdb/install/rust), [NodeJS](/chdb/install/nodejs), [Bun](/chdb/install/bun) or [C and C++](/chdb/install/c), take a look at the corresponding language pages.
Expand Down
Loading
Loading