On 18 November 2026 the chDB account posted that chDB 4.5.1 is out. The note, timestamped 2026-11-18T09:23:41.000Z, says direct PyArrow results are available: chdb.query_arrow(sql) returns a PyArrow table, and chdb.query_arrow_batches(sql) streams record batches, both skipping Arrow IPC encoding. The same note adds one backward-looking line: since 4.5.0, a plain pip install -U chdb also gives you Polars output. The post is the 09:23 UTC note.
That note is short. It names a package version, two call shapes, an encoding those calls skip, and a Polars claim attached to 4.5.0 rather than to a new function name. It does not name chdb-core. It does not print a session object. It does not print an error string. It does not say the skip is a zero-copy path. A reader who stops at the post knows the account tied 4.5.1 to those two calls, and tied Polars output to 4.5.0 plus an upgrade command. The behavior lives on the release page the card points at, and on the docs file that page links.
The release page is v4.5.1. The page says auxten released this at 2026-11-18T06:26:44Z, which the page labels 18 Nov 06:26. The account posted later the same morning. This piece stays inside that note, that release page, and the docs file the release notes link. It does not open the pull requests. It does not open the compare view. It does not treat a second timestamp on the release page, sitting next to commit-signature text, as the release time.
What the post assigns, and what it leaves out
The 09:23 note assigns chDB 4.5.1 to direct PyArrow results. It writes the two calls with a sql argument. It says the first returns a PyArrow table. It says the second streams record batches. It says both skip Arrow IPC encoding. It does not say whether the table is built in one step or collected from batches. It does not say what happens if a second query starts while a stream is open. It does not say the old query call changed.
The same note then assigns a different claim to 4.5.0. The sentence is “Since 4.5.0, plain pip install -U chdb also gives you Polars output.” The install line is in the 4.5.1 post, but the “since 4.5.0” clause is what the text attaches to Polars. The note does not name a Polars function. This article will not invent one.
Those two assignments sit in one post and are easy to collapse. The version that the account ties to query_arrow is 4.5.1. The version that the account ties to Polars output is 4.5.0, reached by upgrading chdb. Treating the afternoon of facts as one new Polars-and-Arrow release would add a sentence the text does not contain.
The core pin on the release page did not move
The release notes open with a requirement, not with the new calls. They say chDB 4.5.1 requires chdb-core>=26.11.1, unchanged from 4.5.0. The pin is the first fact on the page. The new calls come after it, under a heading the page labels New, and they are tied to pull request 806.
That order matters. A team that reads the tweet first can think 4.5.1 is the version that introduced the Arrow path and, by implication, the core that path needs. The notes say the core floor is the same floor 4.5.0 already had. Upgrading the Python package from 4.5.0 to 4.5.1, on the notes’ own wording, does not raise the chdb-core minimum. The notes do not say a machine already on an older core will be moved. They say the requirement is unchanged.
The docs file the notes link, Direct PyArrow queries in chDB, repeats the same floor and adds the mechanism. It says this API requires chdb-core>=26.11.1, whose Python extension exposes query_arrow_reader, send_query_arrow, and streaming_fetch_arrow. It says the package dependency enforces that minimum. It says calling a direct API against an incompatible manually installed core raises a clear error. It does not print that error’s text. The release notes do not print it either. The only error string either page quotes is the batch-stream error, covered below.
The docs file is the blob the release notes link, on main, as opened for this piece. The notes do not say that blob is frozen at the 4.5.1 tag. Where the file and the notes agree, this article says so. Where the file adds a sentence the notes do not have, the sentence is attributed to the file.
What “skipping Arrow IPC” is, on the two pages
The tweet says both new calls skip Arrow IPC encoding. The release notes say the same thing with a mechanism and a contrast. They say chdb.query_arrow() returns a pyarrow.Table, and chdb.query_arrow_batches() returns a closable iterator of record batches. They say both read results through the Arrow C Data interface, so they skip the Arrow IPC encoding that query(sql, "ArrowTable") does. They then say, in a separate sentence, that query(sql, "ArrowTable") is unchanged.
The docs file draws the same line and then refuses a stronger reading. It says the chdb.arrow module provides a native Arrow C Data result path. It says the module does not serialize an Arrow IPC file or stream between chDB and PyArrow. It says conversion between ClickHouse columns and Arrow buffers may still copy data. It says existing chdb.query(sql, "ArrowTable") and FORMAT Arrow retain their IPC behavior.
Three paths are named, and they are not the same path. The new calls use the C Data interface and skip the IPC encoding the notes attribute to query(sql, "ArrowTable"). The old ArrowTable format string is unchanged, on the release page, and still uses IPC, on the docs file. FORMAT Arrow is named only on the docs file, and only to say it keeps IPC behavior. None of the three texts prints a byte count, a timing, or a statement that the C Data path is free of copies. The docs file says the opposite of a zero-copy claim: conversion may still copy.
That is the limit of the phrase in the tweet. “Skipping Arrow IPC encoding” is a statement about which encoding the new calls do not use. It is not a statement about whether ClickHouse columns and Arrow buffers share memory. The page that defines the module says they may not.
The script the release notes print
The release notes print one Python block. This article quotes it. It does not report a run.
import chdb
import pyarrow as pa
table = chdb.query_arrow("SELECT number, number * 2 AS doubled FROM numbers(5)")
with chdb.query_arrow_batches("SELECT number FROM numbers(1000000)") as batches:
for batch in batches:
...
events = pa.table({"id": [1, 2, 3]})
with chdb.arrow.connect() as session:
with session.register_arrow(events) as source:
session.query_arrow(f"SELECT sum(id) AS total FROM {source.sql_expr}")
session.execute("CREATE TABLE dst (id Int64) ENGINE=Memory")
session.insert_arrow("dst", events)
The first call matches the tweet’s shape, with a concrete SQL string instead of the placeholder sql. It selects number and number * 2 AS doubled from numbers(5) and binds the result to table. The notes, above the block, say that call returns a pyarrow.Table. The block itself does not print the table.
The second call is a with around query_arrow_batches, selecting number from numbers(1000000), looping batches, and leaving the loop body as .... The notes say that call returns a closable iterator of record batches. The ellipsis is in the notes. It is not a result.
The third part builds a PyArrow table named events with an id column of 1, 2, and 3. It opens chdb.arrow.connect() as session. Inside that, register_arrow(events) is a nested with, and the query uses source.sql_expr in an f-string: SELECT sum(id) AS total FROM {source.sql_expr}. After that inner block, still inside the session, the notes call session.execute with CREATE TABLE dst (id Int64) ENGINE=Memory, then session.insert_arrow("dst", events).
The prose under the block defines those names. chdb.arrow.connect(path, settings=...) opens a session. register_arrow() takes a PyArrow table, a record batch, or anything with __arrow_c_stream__ and schema, and returns a source you use in SQL through source.sql_expr. insert_arrow() writes one into an existing table. The CREATE TABLE line in the block is the notes’ way of showing a table that exists before the insert. The notes do not say insert_arrow creates the table.
A path string that already has a query
The notes add one rule about connect that the sample block does not illustrate. A path that already has a query string, such as "data.db?mode=ro", keeps that query string when settings are added. The connection stays read-only and rejects writes.
The notes do not print the settings argument. They do not print the exception a rejected write raises. They do not say whether a write rejection is the batch-stream RuntimeError or a different error. The only quoted error on the page is the stream error. A read-only rejection is described, not named.
The example path is the notes’ example, not a file this article opened. The point the notes are making is about string handling: settings do not strip a query string that was already on the path, and a read-only mode on that string is still read-only after settings are added.
One module-level batch stream
The notes then state a concurrency rule that the tweet does not mention. Only one module-level batch stream can run at a time. Starting another query while a stream is open raises RuntimeError("Finish the active Arrow batch stream first") and does not block. A stream that is closed early or interrupted cancels its query and releases the engine.
The quoted string is the whole error text the notes give. They say the call does not block. They do not say it retries. They do not say a session-level stream and a module-level stream share one lock. The sentence is about a module-level batch stream.
The docs file widens that rule without changing the error string, which it does not repeat. It says query_arrow materializes the whole result. It says query_arrow_batches fetches incrementally and supports early close and cancellation. It says a session accepts only one active batch stream at a time. It says not to use the same connection from multiple threads concurrently. It says that while a module-level batch iterator is active, other module-level queries fail immediately instead of waiting for that iterator to close, and it says to prefer a with block. It says returned batches can outlive the iterator after their data has been imported into PyArrow.
Read those sentences against the notes. The notes name the error and say the second query does not block. The docs file says other module-level queries fail immediately instead of waiting. Together they describe a fail-fast lock, not a queue. The docs file adds a thread warning the notes do not print: do not use the same connection from multiple threads. The notes do not say what a second thread does. This article will not invent that outcome. The documented warning is the limit.
The docs file also separates the two new calls. Materializing with query_arrow is not described as holding the batch-stream lock. The lock language is about a batch iterator and about a session’s one active batch stream. A reader who treats every query_arrow call as a stream will be adding a rule the file does not state. A reader who starts query_arrow_batches and then calls another module-level query before the with exits is inside the rule both pages describe.
The sample on the docs file shows the early-close case the notes mention in prose. It opens a session, registers a table, runs query_arrow for a count, then opens query_arrow_batches on numbers(1000000), prints batch.num_rows, and breaks. The comment above that loop says each value yielded is a pyarrow.RecordBatch, and that for large results you should keep one session and close the batch stream even when exiting early. The break is in the file. Closing is what the with is for. The notes say a stream closed early cancels its query and releases the engine. The file’s comment tells the reader to close even on an early exit. Those two sentences are the same instruction from two pages.
register_arrow is the Python table function
The release notes say register_arrow returns a source used through source.sql_expr. The docs file says what that source is. register_arrow returns a closable, opaque SQL source expression. It uses the existing Python Python(...) table function and PyArrow C Stream conversion, not the separate core chdb_arrow_scan registry.
That distinction is only on the docs file. The release notes do not name chdb_arrow_scan. A reader of the notes alone does not know there is a second registry. The file says the session helper is not that registry. It says the table or reader stays alive for the query. It says closing a source during an active batch stream defers cleanup until that stream closes. It says a one-shot reader cannot be scanned twice.
The file also says to use the same session’s query method when requesting a non-Arrow output from a registered source, because the Python table function resolves its source in that session method’s Python frame. The release notes do not show a non-Arrow output from a registered source. Their session example calls session.query_arrow, not session.query. The file is the page that says a non-Arrow request belongs on query, on that same session.
The docs example makes the Python(...) name visible in SQL, which the release block does not. It builds a table with an id column and a name column holding é and 你好. It calls module-level query_arrow with SELECT id, name FROM Python(tbl) ORDER BY id and options={"string_as_string": True}. The comment says Python(tbl) scans the in-memory Arrow table, the result is produced through the native C Data path, and it is then collected into a PyArrow table. Later, inside a session, the same file uses source.sql_expr rather than writing Python(tbl) by hand: SELECT count() AS n FROM {source.sql_expr}.
The two spellings are both on the file. One is a SQL table function the comment describes. The other is the expression register_arrow returns, which the file says uses that table function. The release notes only print the sql_expr spelling. They do not print options. The string_as_string option in the docs example matches one of the defaults the file lists later. The file does not say the option is required. It passes it in the example and lists the default as True.
insert_arrow writes into a table that already exists
Both pages say the insert target must already exist. The release notes say insert_arrow() writes one into an existing table, and their block creates dst with session.execute before the insert. The docs file is more specific about the statement shape. ArrowSession.insert_arrow accepts a pyarrow.Table, a RecordBatch, or a producer implementing __arrow_c_stream__ and exposing schema. It performs an INSERT ... SELECT ... FROM Python(_source) into an existing table, without IPC or a temporary file.
The file says readers are one-shot. Do not reuse them after an insert or expect a second scan to replay data. Column names and destination identifiers are quoted. The destination may be (database, table). The release notes do not mention a database-and-table pair. They show a string, "dst". The pair form is on the docs file only.
The docs insert example is shorter than the release block:
with chdb.arrow.connect() as session:
session.execute("CREATE TABLE dst (id Int64, name String) ENGINE=Memory")
session.insert_arrow("dst", tbl)
The release block’s destination has only id Int64. The docs example’s destination has id Int64, name String, matching the tbl that example built with id and name. Neither page says the insert alters the destination schema if the columns differ. Neither page prints a mismatch error. The documented contract is an insert into an existing table, with quoted names, without IPC and without a temporary file.
“Without IPC or a temporary file” is an insert claim, separate from the result-path claim. The result path skips IPC encoding on the way out to PyArrow, and the docs file says conversion may still copy. The insert path, on the docs file, does not use IPC and does not use a temporary file on the way in. Those are two directions. The tweet only describes the way out.
DateTime leaves as uint32 seconds
The docs file ends with output defaults. It says default C Data output options match the core ABI: unsupported_as_binary=False, low_cardinality_as_dictionary=False, string_as_string=True. It says DateTime exports as Arrow uint32 Unix seconds. It says to use an explicit SQL DateTime64 conversion for a timezone-tagged timestamp.
The release notes do not mention DateTime, DateTime64, or those three option names. A reader of the tweet and the notes can believe a timestamp column arrives as a timestamp. The file says a DateTime value exports as uint32 Unix seconds, and that a timezone-tagged timestamp needs a SQL DateTime64 conversion. The file does not print that conversion. It names the type to convert to. This article will not invent the SQL.
string_as_string=True is both a default on that list and the option the docs example passes. unsupported_as_binary and low_cardinality_as_dictionary appear only as defaults set to False. The file does not show a call that flips them. It says the defaults match the core ABI. It does not paste the ABI.
The only validation numbers on the docs file
The docs file prints one local check, and it fences it. The published chdb-core 26.11.1 macOS arm64 wheel was validated with Python 3.9.25 and PyArrow 21.0.0. Four native Arrow tests and twelve wrapper tests passed, including in-memory input, direct output, early cancellation, and insertion. Other Python, PyArrow, and platform combinations rely on their own CI and should not be inferred from this single local check.
Those numbers are the file’s numbers. They are not a result from this article. The release notes do not repeat them. The tweet does not repeat them. The file names one wheel, one Python, one PyArrow, and a test count. It then says not to infer the rest. A writeup that turns “four native Arrow tests and twelve wrapper tests passed” into a general compatibility claim is doing the thing the same paragraph forbids.
The included cases are named: in-memory input, direct output, early cancellation, and insertion. Those line up with the APIs the two pages describe. They are not a benchmark. No row count, no timing, and no comparison with query(sql, "ArrowTable") appears next to them.
The DataStore fix is not an Arrow change
Under Fixed, the release notes describe a DataStore change, pull request 804. when(...).otherwise(...) with only integer literals returns int64, as pandas does (np.where / np.select). It used to return ClickHouse’s uint8, which wrapped around on later subtraction.
The tweet does not mention this fix. The docs file does not mention it. It is on the release page, in a section separate from the PyArrow calls. The notes compare the new return type to pandas. They name np.where and np.select. They do not paste a pandas call. They say the old type was ClickHouse’s uint8, and that the old type wrapped around on later subtraction. They do not print the subtraction or the wrapped value. The compare link on the page is v4.5.0…v4.5.1. This article did not open it, and does not describe commits that are not in the notes.
The fix is easy to fold into the Arrow story because both are on one release. The notes do not fold them. Arrow results are the New section. The integer-literal when/otherwise result type is the Fixed section. A pipeline that does not use DataStore when(...).otherwise(...) with only integer literals is outside the fix the notes describe. A pipeline that does use that form, and that subtracted from the result, is the case the notes say used to wrap.
Polars stays where the tweet put it
The 4.5.1 release notes do not mention Polars. The docs file does not mention Polars. The only Polars sentence in the sources for this piece is the last sentence of the 09:23 note: since 4.5.0, plain pip install -U chdb also gives you Polars output.
That sentence is evidence that the account, on 18 November 2026, said an upgrade of chdb has provided Polars output since 4.5.0. It is not evidence of a function name, a return type, or a relationship between that output and query_arrow. The 4.5.1 notes spend their New section on PyArrow tables, record batches, sessions, and the core pin they say did not change. A reader who needs the Polars call has to look somewhere the 4.5.1 notes do not point. This article will not supply the missing name.
The install command is also easy to over-read. It is in the 4.5.1 post. The clause that governs it is “since 4.5.0.” The notes for 4.5.1 do not print pip install. They print a core requirement that they say is unchanged from 4.5.0. Installing 4.5.1 because of the tweet is a reasonable reading of “v4.5.1 is out.” Expecting that install, by itself, to document a Polars API is not a reading the notes support.
What a careful reading still cannot claim
The three texts do not print a benchmark. They do not print a memory delta. They do not say the C Data path is faster than query(sql, "ArrowTable"). They say it skips an encoding the old format string uses, and the docs file says conversion may still copy. Speed is not in the sources.
They do not print a wheel matrix. The one validation paragraph is macOS arm64, Python 3.9.25, PyArrow 21.0.0, and sixteen tests counted as four plus twelve. The same paragraph says not to infer other combinations.
They do not print the error text for an incompatible manually installed core, or for a write on a read-only path. They print one error string, for a second query during an open module-level batch stream.
They do not say query_arrow and query_arrow_batches share one lock. They say a batch stream is exclusive at module level, that a session accepts one active batch stream, and that query_arrow materializes the whole result.
They do not say insert_arrow creates a table, skips quoting, or accepts a second scan of a one-shot reader. They say the table must exist, names are quoted, and a one-shot reader cannot be scanned twice.
Reading the two result paths against the lock
The tweet offers two calls and one shared property: both skip Arrow IPC encoding. The pages split those calls. query_arrow collects a pyarrow.Table. query_arrow_batches yields record batches and is the call the notes wrap in with, the call the docs file says to close even on break, and the call that sits under the one-stream rule. A team that picks the batch call for a large numbers scan, which is the shape both pages print with 1000000, is also picking the lock. The next module-level query has to wait until that stream is closed, and “wait” is the wrong verb: both pages say the next query fails instead of blocking. The notes name the error. The docs file says the failure is immediate.
That split is the practical reading of 4.5.1, and it is not the reading the tweet can carry alone. The materializing call is the one that matches a script which used query(sql, "ArrowTable") and then ran another query in the same process. The notes say the old call is unchanged. They describe query_arrow as a table return through the C Data interface, not as a stream the caller must finish. The batch call is the one that matches a script which cannot hold the whole result, and it is the one that cancels on early close and rejects a second module-level query while it is open. Choosing the batch call to avoid a large table, which is what “streams record batches” suggests, imports a process-wide constraint the tweet does not mention.
The copy sentence belongs in the same choice. Skipping IPC removes a serialize step the docs file describes as an Arrow IPC file or stream between chDB and PyArrow. It does not, on that file, remove the chance of a copy between ClickHouse columns and Arrow buffers. A migration that switches ArrowTable to query_arrow to get a shared-memory result is ahead of the page. A migration that switches to avoid IPC encoding is inside the sentence both the notes and the tweet actually print. The file’s own check does not rank the two. It says four native tests and twelve wrapper tests passed on one wheel, and it says not to infer the rest.
The core pin keeps the choice inside 4.5.0’s floor. The notes say 4.5.1 still requires chdb-core>=26.11.1, unchanged from 4.5.0. The new calls are a Python-package change on a core the previous package version already required. A machine whose core is below that floor is outside the API the docs file describes, and the file says a direct call against an incompatible manually installed core raises a clear error it does not quote. A machine already on that floor, upgrading chdb to 4.5.1, is the case the notes’ first sentence is written for: the pin does not move, and the new calls are what the New section adds.
Discussion
Leave a comment
No comments yet
Be the first to start the conversation.