pypi / chdb
chdb
What changed in chdb 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
12 breaking3 security30 new APIs and options10 performance8 behavior and defaults2 tooling54 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initchdb 4109 changes
Breaking changes 12
Only one module-level batch stream can run at a time; starting another query while one is open raises
RuntimeErrorwithout blocking. Closing or interrupting a stream early cancels its query and releases the engine.DataStore
when(...).otherwise(...)with only integer literals now returnsint64, matching pandas instead of ClickHouseuint8.The clickhouse-connect backend and its extension are gone; clickhouse-connect 1.6.0 and later ships its own chDB backend.
The clickhouse-connect extra and its entry point are gone; newer clickhouse-connect releases ship their own chDB backend.
The release requires chdb-core>=26.7.0; the durable extras require chdb-core>=26.7.3.
New objects are created in default rather than mem; existing objects retain the name in their head.
Objects written by the 4.3.0 prototype cannot be opened because their checkpoints have no checksum; they must be recreated.
Requires chdb-core version 26.5.0 or later.
Iteration on LazyGroupBy now mirrors pandas iteration.
Default memory limits are disabled, changing the memory constraints applied when running chdb.
Float nulls are represented as NaN in DataFrame output.
Timezone information is omitted by default in DataFrame output.
Security 3
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.
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.
chdb automatically detects secure connections to ClickHouse Cloud.
New APIs and options 29
Opens an Arrow session with a path and optional settings.
Returns query results as a PyArrow table through the Arrow C Data interface, skipping Arrow IPC encoding.
Returns a closable iterator of record batches through the Arrow C Data interface.
Writes a PyArrow object into an existing table.
Registers a PyArrow table, record batch, or object with
__arrow_c_stream__andschema, returning a source usable in SQL throughsource.sql_expr.Python UDAFs from the wrapper are available with chdb installed.
Can query a Polars DataFrame, LazyFrame or Series in place and return a Polars DataFrame.
UDFType is available with chdb installed.
Adds an install extra for S3-compatible storage, including AWS, MinIO, R2, and GCS via its S3 endpoint.
Adds an install extra for native Azure storage.
Adds an install extra for native GCS storage.
Adds a durable database whose state lives in object storage, with leases, restore, buffered writes, flush, and checkpoint support.
Namespace URLs may use local: or file://, allowing one URL format across Python, Node, and Go.
Adds a clickhouse-connect backend that uses chDB’s embedded engine for in-memory or on-disk clients instead of an HTTP server.
Adds support for pandas 3.x
pd.col()expressions in DataStore.Writes an in-memory DataFrame to a ClickHouse server, including same- and cross-server writeback.
A chdb.datastore shim was added.
Enables base64 functions.
Introduces performance mode for performance optimization.
Adds support for reporting query progress.
Adds support for remote databases.
Adds the timedelta64 type.
SQL generation can be assisted through ClickHouse client integration.
This config option identifies chDB requests to remote ClickHouse.
A Pandas-compatible API with automatic SQL generation is available.
Query results can be output directly to Pandas DataFrames.
SQL statements can be executed in parallel.
The Python binding supports ClickHouse query parameters.
Pandas DataFrames expose a _row_id virtual column.
Performance 9
Resolves
.columnslazily without materializing the DataStore.Resolves
.dtypeslazily without materializing the DataStore.Resolves
.indexlazily without materializing the DataStore.Resolves
.shapelazily without materializing the DataStore.Unbounded ORDER BY is pushed to SQL for local from_df sources.
Optimizes DataStore memory usage.
Streaming DataFrame execution is optimized for 80% memory reduction.
Removes the GIL from string column scanning.
Performance of DataFrame string queries is optimized.
Behavior and default changes 7
Now uses chdb-core's class, subclasses RuntimeError, and catches errors raised inside the engine bindings.
Adds dispatch to DataStore when
output_format="DataStore"is selected.Adds support for Pandas v3.0.
The delta lake table function is supported on the Linux ARM platform.
Queries can operate on Pandas Categorical columns.
DataFrame queries support pandas StringDtype columns.
Queries can operate on sliced DataFrames.
Tooling 1
The chdb command can now be installed with pipx and invoked with uvx.
Fixes and other changes 48
Adding settings preserves a path's existing query string; read-only connections remain read-only and reject writes.
Callable assign() stays lazy.
CSV/TSV exponent-notation floats are read as float64.
Fixes describe() on non-numeric frames.
Fixes drop_duplicates(subset="col").
Fixes DataStore handling of duplicated columns.
Fixes from_arrow().
Fixes aggregations, categorical keys, skipna=False, as_index=False labels, agg() returning a Series, and file-order cumulative operations.
DataStore iloc[] stays lazy.
Importing chdb no longer changes the working directory.
Fixes the dtype of isocalendar().year.
Fixes DataStore join behavior.
DataStore loc[:, cols] stays lazy.
Fixes mask() after a filter.
Fixes DataStore merge behavior.
Fixes aborts at exit when a chDB connection was left open.
Fixes select() with swapped aliases.
Fixes DataStore handling of small-int and float32 dtypes.
Fixes tie order in chained sort_values() before head().
Fixes multi-stage pipelines and aggregation aliases in SQL write-back.
Fixes to_sql(execution_format=True).
Fixes DataStore union behavior.
Fixes where() after a filter.
Adds support for the ADBC extra.
Iteration on SeriesGroupBy now mirrors pandas iteration.
Pre-loads the shared library with RTLD_DEEPBIND to avoid host libstdc++ conflicts.
Corrects explain() labeling when GroupBy/apply is pushed down, so it is not mislabeled as Pandas.
Resolves three SQL builder bugs found through user-path tests.
Fixes reading Parquet files from S3.
Fixes generated SQL so HEADERS is emitted inside the url() call.
count() and count_rows() strip ORDER BY and use correct SQL for lazy operations.
Adds chdb/__init__.py to prevent the module from breaking after an upgrade.
Metadata access is improved for pristine DataStore sources.
chdb.__version__ was fixed.
Fixed a crash when exiting.
Fixed profiling so it records data for remote SQL and metadata queries.
Adds support for pandas boolean columns containing none.
Fixes a crash when a Python DataFrame is referenced multiple times.
Isolates pybind11 internals to resolve an import conflict with torch.
Fixes crashes when Python exits.
DataFrame output with binary type is fixed.
Concurrency issues in chDB concurrent queries are fixed.
Connection closing issues, including crashes when closing a connection, are fixed.
Null handling for Pandas DataFrame columns is improved.
DataFrame column nullability is preserved.
Queries returning DataFrames with datetime types are fixed.
A missing-column issue in DataFrame output is fixed.
Querying the _row_number column in a Parquet file is fixed.
chdb 310 changes
New APIs and options 1
A Python package for musl Linux was added.
Performance 1
ArrowTable reading and writing were optimized for efficiency.
Behavior and default changes 1
Added pyarrow back as a dependency of chdb.
Tooling 1
Build support was added for Python 3.14.
Fixes and other changes 6
Added pandas back as a dependency of chdb.
Fixed the Arrow date format.
Exceptions are now caught for the C-bind connect_chdb API.
Connections can now be handled using context managers.
The stdin check is non-blocking to prevent Jupyter from hanging.
Fixed queries involving pandas data frames with an index.