unstale

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 init

@unstale/cli on npm

chdb 4109 changes

Breaking changes 12

  • 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.1release notes

  • DataStore when(...).otherwise(...) with only integer literals now returns int64, matching pandas instead of ClickHouse uint8.

    4.5.1release notes

  • The clickhouse-connect backend and its extension are gone; clickhouse-connect 1.6.0 and later ships its own chDB backend.

    4.5.0release notes

  • The clickhouse-connect extra and its entry point are gone; newer clickhouse-connect releases ship their own chDB backend.

    4.5.0release notes

  • The release requires chdb-core>=26.7.0; the durable extras require chdb-core>=26.7.3.

    4.4.0release notes

  • New objects are created in default rather than mem; existing objects retain the name in their head.

    4.4.0release notes

  • Objects written by the 4.3.0 prototype cannot be opened because their checkpoints have no checksum; they must be recreated.

    4.4.0release notes

  • Requires chdb-core version 26.5.0 or later.

    4.2.1release notes

  • Iteration on LazyGroupBy now mirrors pandas iteration.

    4.1.9release notes

  • Default memory limits are disabled, changing the memory constraints applied when running chdb.

    4.1.7release notes

  • Float nulls are represented as NaN in DataFrame output.

    4.0.0release notes

  • Timezone information is omitted by default in DataFrame output.

    4.0.0release notes

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.

    4.2.1release notes

  • 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.0release notes

  • chdb automatically detects secure connections to ClickHouse Cloud.

    4.1.3release notes

New APIs and options 29

  • Opens an Arrow session with a path and optional settings.

    4.5.1release notes

  • Returns query results as a PyArrow table through the Arrow C Data interface, skipping Arrow IPC encoding.

    4.5.1release notes

  • Returns a closable iterator of record batches through the Arrow C Data interface.

    4.5.1release notes

  • Writes a PyArrow object into an existing table.

    4.5.1release notes

  • 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.1release notes

  • Python UDAFs from the wrapper are available with chdb installed.

    4.5.0release notes

  • Can query a Polars DataFrame, LazyFrame or Series in place and return a Polars DataFrame.

    4.5.0release notes

  • UDFType is available with chdb installed.

    4.5.0release notes

  • Adds an install extra for S3-compatible storage, including AWS, MinIO, R2, and GCS via its S3 endpoint.

    4.4.0release notes

  • Adds an install extra for native Azure storage.

    4.4.0release notes

  • Adds an install extra for native GCS storage.

    4.4.0release notes

  • Adds a durable database whose state lives in object storage, with leases, restore, buffered writes, flush, and checkpoint support.

    4.4.0release notes

  • Namespace URLs may use local: or file://, allowing one URL format across Python, Node, and Go.

    4.4.0release notes

  • 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.1release notes

  • Adds support for pandas 3.x pd.col() expressions in DataStore.

    4.2.0release notes

  • Writes an in-memory DataFrame to a ClickHouse server, including same- and cross-server writeback.

    4.2.0release notes

  • A chdb.datastore shim was added.

    4.1.1release notes

  • Enables base64 functions.

    4.0.2release notes

  • Introduces performance mode for performance optimization.

    4.0.2release notes

  • Adds support for reporting query progress.

    4.0.2release notes

  • Adds support for remote databases.

    4.0.1release notes

  • Adds the timedelta64 type.

    4.0.1release notes

  • SQL generation can be assisted through ClickHouse client integration.

    4.0.0release notes

  • This config option identifies chDB requests to remote ClickHouse.

    4.0.0release notes

  • A Pandas-compatible API with automatic SQL generation is available.

    4.0.0release notes

  • Query results can be output directly to Pandas DataFrames.

    4.0.0release notes

  • SQL statements can be executed in parallel.

    4.0.0release notes

  • The Python binding supports ClickHouse query parameters.

    4.0.0release notes

  • Pandas DataFrames expose a _row_id virtual column.

    4.0.0release notes

Performance 9

  • Resolves .columns lazily without materializing the DataStore.

    4.2.0release notes

  • Resolves .dtypes lazily without materializing the DataStore.

    4.2.0release notes

  • Resolves .index lazily without materializing the DataStore.

    4.2.0release notes

  • Resolves .shape lazily without materializing the DataStore.

    4.2.0release notes

  • Unbounded ORDER BY is pushed to SQL for local from_df sources.

    4.1.9release notes

  • Optimizes DataStore memory usage.

    4.1.7release notes

  • Streaming DataFrame execution is optimized for 80% memory reduction.

    4.1.6release notes

  • Removes the GIL from string column scanning.

    4.0.2release notes

  • Performance of DataFrame string queries is optimized.

    4.0.0release notes

Behavior and default changes 7

  • Now uses chdb-core's class, subclasses RuntimeError, and catches errors raised inside the engine bindings.

    4.5.0release notes

  • Adds dispatch to DataStore when output_format="DataStore" is selected.

    4.2.0release notes

  • Adds support for Pandas v3.0.

    4.0.2release notes

  • The delta lake table function is supported on the Linux ARM platform.

    4.0.0release notes

  • Queries can operate on Pandas Categorical columns.

    4.0.0release notes

  • DataFrame queries support pandas StringDtype columns.

    4.0.0release notes

  • Queries can operate on sliced DataFrames.

    4.0.0release notes

Tooling 1

  • The chdb command can now be installed with pipx and invoked with uvx.

    4.5.0release notes

Fixes and other changes 48

  • Adding settings preserves a path's existing query string; read-only connections remain read-only and reject writes.

    4.5.1release notes

  • Callable assign() stays lazy.

    4.5.0release notes

  • CSV/TSV exponent-notation floats are read as float64.

    4.5.0release notes

  • Fixes describe() on non-numeric frames.

    4.5.0release notes

  • Fixes drop_duplicates(subset="col").

    4.5.0release notes

  • Fixes DataStore handling of duplicated columns.

    4.5.0release notes

  • Fixes from_arrow().

    4.5.0release notes

  • Fixes aggregations, categorical keys, skipna=False, as_index=False labels, agg() returning a Series, and file-order cumulative operations.

    4.5.0release notes

  • DataStore iloc[] stays lazy.

    4.5.0release notes

  • Importing chdb no longer changes the working directory.

    4.5.0release notes

  • Fixes the dtype of isocalendar().year.

    4.5.0release notes

  • Fixes DataStore join behavior.

    4.5.0release notes

  • DataStore loc[:, cols] stays lazy.

    4.5.0release notes

  • Fixes mask() after a filter.

    4.5.0release notes

  • Fixes DataStore merge behavior.

    4.5.0release notes

  • Fixes aborts at exit when a chDB connection was left open.

    4.5.0release notes

  • Fixes select() with swapped aliases.

    4.5.0release notes

  • Fixes DataStore handling of small-int and float32 dtypes.

    4.5.0release notes

  • Fixes tie order in chained sort_values() before head().

    4.5.0release notes

  • Fixes multi-stage pipelines and aggregation aliases in SQL write-back.

    4.5.0release notes

  • Fixes to_sql(execution_format=True).

    4.5.0release notes

  • Fixes DataStore union behavior.

    4.5.0release notes

  • Fixes where() after a filter.

    4.5.0release notes

  • Adds support for the ADBC extra.

    4.3.0release notes

  • Iteration on SeriesGroupBy now mirrors pandas iteration.

    4.1.9release notes

  • Pre-loads the shared library with RTLD_DEEPBIND to avoid host libstdc++ conflicts.

    4.1.8release notes

  • Corrects explain() labeling when GroupBy/apply is pushed down, so it is not mislabeled as Pandas.

    4.1.8release notes

  • Resolves three SQL builder bugs found through user-path tests.

    4.1.8release notes

  • Fixes reading Parquet files from S3.

    4.1.7release notes

  • Fixes generated SQL so HEADERS is emitted inside the url() call.

    4.1.7release notes

  • count() and count_rows() strip ORDER BY and use correct SQL for lazy operations.

    4.1.5release notes

  • Adds chdb/__init__.py to prevent the module from breaking after an upgrade.

    4.1.4release notes

  • Metadata access is improved for pristine DataStore sources.

    4.1.2release notes

  • chdb.__version__ was fixed.

    4.1.1release notes

  • Fixed a crash when exiting.

    4.1.0release notes

  • Fixed profiling so it records data for remote SQL and metadata queries.

    4.1.0release notes

  • Adds support for pandas boolean columns containing none.

    4.0.2release notes

  • Fixes a crash when a Python DataFrame is referenced multiple times.

    4.0.2release notes

  • Isolates pybind11 internals to resolve an import conflict with torch.

    4.0.2release notes

  • Fixes crashes when Python exits.

    4.0.1release notes

  • DataFrame output with binary type is fixed.

    4.0.0release notes

  • Concurrency issues in chDB concurrent queries are fixed.

    4.0.0release notes

  • Connection closing issues, including crashes when closing a connection, are fixed.

    4.0.0release notes

  • Null handling for Pandas DataFrame columns is improved.

    4.0.0release notes

  • DataFrame column nullability is preserved.

    4.0.0release notes

  • Queries returning DataFrames with datetime types are fixed.

    4.0.0release notes

  • A missing-column issue in DataFrame output is fixed.

    4.0.0release notes

  • Querying the _row_number column in a Parquet file is fixed.

    4.0.0release notes

chdb 310 changes

New APIs and options 1

Performance 1

  • ArrowTable reading and writing were optimized for efficiency.

    3.7.1release notes

Behavior and default changes 1

Tooling 1

Fixes and other changes 6

  • Added pandas back as a dependency of chdb.

    3.7.2release notes

  • Fixed the Arrow date format.

    3.7.1release notes

  • Exceptions are now caught for the C-bind connect_chdb API.

    3.7.1release notes

  • Connections can now be handled using context managers.

    3.7.1release notes

  • The stdin check is non-blocking to prevent Jupyter from hanging.

    3.7.1release notes

  • Fixed queries involving pandas data frames with an index.

    3.7.1release notes