# What changed in chdb

> 119 changes in chdb 3 to 4 from its official release notes, upgrade guides and advisories: 12 breaking, 3 security, 30 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/pypi/chdb/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## chdb 4

### Breaking changes

- Only one module-level batch stream can run at a time; starting another query while one is open raises `RuntimeError` without blocking. Closing or interrupting a stream early cancels its query and releases the engine. (4.5.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.1)
- DataStore `when(...).otherwise(...)` with only integer literals now returns `int64`, matching pandas instead of ClickHouse `uint8`. (4.5.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.1)
- The clickhouse-connect backend and its extension are gone; clickhouse-connect 1.6.0 and later ships its own chDB backend. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- The clickhouse-connect extra and its entry point are gone; newer clickhouse-connect releases ship their own chDB backend. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- The release requires chdb-core>=26.7.0; the durable extras require chdb-core>=26.7.3. (4.4.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.4.0)
- New objects are created in default rather than mem; existing objects retain the name in their head. (4.4.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.4.0)
- Objects written by the 4.3.0 prototype cannot be opened because their checkpoints have no checksum; they must be recreated. (4.4.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.4.0)
- Requires chdb-core version 26.5.0 or later. (4.2.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.1)
- Iteration on LazyGroupBy now mirrors pandas iteration. (4.1.9) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.9)
- Default memory limits are disabled, changing the memory constraints applied when running chdb. (4.1.7) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.7)
- Float nulls are represented as NaN in DataFrame output. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Timezone information is omitted by default in DataFrame output. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)

### Security

- Updates the agents contract to 0.2.0, making descriptors the single source of truth and adding capabilities(), acall(), external-session probing, and hardened descriptor and dispatch edges. (4.2.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.1)
- Adds a beta Python agent tool for querying and introspection with engine-enforced read-only access, parameter binding, result caps, error dispatch, optional timeouts, file attachment and allowlisting, and Python-only dataframe queries. (4.2.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.0)
- chdb automatically detects secure connections to ClickHouse Cloud. (4.1.3) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.3)

### New APIs and options

- Opens an Arrow session with a path and optional settings. (4.5.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.1)
- Returns query results as a PyArrow table through the Arrow C Data interface, skipping Arrow IPC encoding. (4.5.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.1)
- Returns a closable iterator of record batches through the Arrow C Data interface. (4.5.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.1)
- Writes a PyArrow object into an existing table. (4.5.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.1)
- Registers a PyArrow table, record batch, or object with `__arrow_c_stream__` and `schema`, returning a source usable in SQL through `source.sql_expr`. (4.5.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.1)
- Python UDAFs from the wrapper are available with chdb installed. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Can query a Polars DataFrame, LazyFrame or Series in place and return a Polars DataFrame. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- UDFType is available with chdb installed. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Adds an install extra for S3-compatible storage, including AWS, MinIO, R2, and GCS via its S3 endpoint. (4.4.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.4.0)
- Adds an install extra for native Azure storage. (4.4.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.4.0)
- Adds an install extra for native GCS storage. (4.4.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.4.0)
- Adds a durable database whose state lives in object storage, with leases, restore, buffered writes, flush, and checkpoint support. (4.4.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.4.0)
- Namespace URLs may use local: or file://, allowing one URL format across Python, Node, and Go. (4.4.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.4.0)
- Adds a clickhouse-connect backend that uses chDB’s embedded engine for in-memory or on-disk clients instead of an HTTP server. (4.2.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.1)
- Adds support for pandas 3.x `pd.col()` expressions in DataStore. (4.2.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.0)
- Writes an in-memory DataFrame to a ClickHouse server, including same- and cross-server writeback. (4.2.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.0)
- A chdb.datastore shim was added. (4.1.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.1)
- Enables base64 functions. (4.0.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.2)
- Introduces performance mode for performance optimization. (4.0.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.2)
- Adds support for reporting query progress. (4.0.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.2)
- Adds support for remote databases. (4.0.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.1)
- Adds the timedelta64 type. (4.0.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.1)
- SQL generation can be assisted through ClickHouse client integration. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- This config option identifies chDB requests to remote ClickHouse. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- A Pandas-compatible API with automatic SQL generation is available. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Query results can be output directly to Pandas DataFrames. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- SQL statements can be executed in parallel. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- The Python binding supports ClickHouse query parameters. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Pandas DataFrames expose a _row_id virtual column. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)

### Performance

- Resolves `.columns` lazily without materializing the DataStore. (4.2.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.0)
- Resolves `.dtypes` lazily without materializing the DataStore. (4.2.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.0)
- Resolves `.index` lazily without materializing the DataStore. (4.2.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.0)
- Resolves `.shape` lazily without materializing the DataStore. (4.2.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.0)
- Unbounded ORDER BY is pushed to SQL for local from_df sources. (4.1.9) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.9)
- Optimizes DataStore memory usage. (4.1.7) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.7)
- Streaming DataFrame execution is optimized for 80% memory reduction. (4.1.6) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.6)
- Removes the GIL from string column scanning. (4.0.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.2)
- Performance of DataFrame string queries is optimized. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)

### Behavior and default changes

- Now uses chdb-core's class, subclasses RuntimeError, and catches errors raised inside the engine bindings. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Adds dispatch to DataStore when `output_format="DataStore"` is selected. (4.2.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.2.0)
- Adds support for Pandas v3.0. (4.0.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.2)
- The delta lake table function is supported on the Linux ARM platform. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Queries can operate on Pandas Categorical columns. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- DataFrame queries support pandas StringDtype columns. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Queries can operate on sliced DataFrames. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)

### Tooling

- The chdb command can now be installed with pipx and invoked with uvx. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)

### Fixes and other changes

- Adding settings preserves a path's existing query string; read-only connections remain read-only and reject writes. (4.5.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.1)
- Callable assign() stays lazy. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- CSV/TSV exponent-notation floats are read as float64. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes describe() on non-numeric frames. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes drop_duplicates(subset="col"). (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes DataStore handling of duplicated columns. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes from_arrow(). (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes aggregations, categorical keys, skipna=False, as_index=False labels, agg() returning a Series, and file-order cumulative operations. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- DataStore iloc[] stays lazy. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Importing chdb no longer changes the working directory. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes the dtype of isocalendar().year. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes DataStore join behavior. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- DataStore loc[:, cols] stays lazy. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes mask() after a filter. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes DataStore merge behavior. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes aborts at exit when a chDB connection was left open. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes select() with swapped aliases. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes DataStore handling of small-int and float32 dtypes. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes tie order in chained sort_values() before head(). (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes multi-stage pipelines and aggregation aliases in SQL write-back. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes to_sql(execution_format=True). (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes DataStore union behavior. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Fixes where() after a filter. (4.5.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.5.0)
- Adds support for the ADBC extra. (4.3.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.3.0)
- Iteration on SeriesGroupBy now mirrors pandas iteration. (4.1.9) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.9)
- Pre-loads the shared library with RTLD_DEEPBIND to avoid host libstdc++ conflicts. (4.1.8) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.8)
- Corrects explain() labeling when GroupBy/apply is pushed down, so it is not mislabeled as Pandas. (4.1.8) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.8)
- Resolves three SQL builder bugs found through user-path tests. (4.1.8) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.8)
- Fixes reading Parquet files from S3. (4.1.7) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.7)
- Fixes generated SQL so HEADERS is emitted inside the url() call. (4.1.7) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.7)
- count() and count_rows() strip ORDER BY and use correct SQL for lazy operations. (4.1.5) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.5)
- Adds chdb/__init__.py to prevent the module from breaking after an upgrade. (4.1.4) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.4)
- Metadata access is improved for pristine DataStore sources. (4.1.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.2)
- chdb.__version__ was fixed. (4.1.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.1)
- Fixed a crash when exiting. (4.1.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.0)
- Fixed profiling so it records data for remote SQL and metadata queries. (4.1.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.1.0)
- Adds support for pandas boolean columns containing none. (4.0.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.2)
- Fixes a crash when a Python DataFrame is referenced multiple times. (4.0.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.2)
- Isolates pybind11 internals to resolve an import conflict with torch. (4.0.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.2)
- Fixes crashes when Python exits. (4.0.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.1)
- DataFrame output with binary type is fixed. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Concurrency issues in chDB concurrent queries are fixed. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Connection closing issues, including crashes when closing a connection, are fixed. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Null handling for Pandas DataFrame columns is improved. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- DataFrame column nullability is preserved. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Queries returning DataFrames with datetime types are fixed. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- A missing-column issue in DataFrame output is fixed. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)
- Querying the _row_number column in a Parquet file is fixed. (4.0.0) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v4.0.0)

## chdb 3

### New APIs and options

- A Python package for musl Linux was added. (3.7.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.1)

### Performance

- ArrowTable reading and writing were optimized for efficiency. (3.7.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.1)

### Behavior and default changes

- Added pyarrow back as a dependency of chdb. (3.7.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.2)

### Tooling

- Build support was added for Python 3.14. (3.7.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.1)

### Fixes and other changes

- Added pandas back as a dependency of chdb. (3.7.2) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.2)
- Fixed the Arrow date format. (3.7.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.1)
- Exceptions are now caught for the C-bind connect_chdb API. (3.7.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.1)
- Connections can now be handled using context managers. (3.7.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.1)
- The stdin check is non-blocking to prevent Jupyter from hanging. (3.7.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.1)
- Fixed queries involving pandas data frames with an index. (3.7.1) — [release notes](https://github.com/chdb-io/chdb/releases/tag/v3.7.1)
