Skip to content

Release pull request for branch 26.3 - #100062

Open
robot-clickhouse wants to merge 2060 commits into
masterfrom
26.3
Open

robot-clickhouse wants to merge 2060 commits into
masterfrom
26.3

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Mar 19, 2026 •

Copy link
Copy Markdown
Member

This PullRequest is a part of ClickHouse release cycle. It is used by CI system only. Do not perform any changes with it.


Note

High Risk
Touches query analyzer/optimizers and network I/O/SSL code paths, plus introduces new distroless Docker images/entrypoint logic; regressions could affect query semantics/perf or connectivity. Broad dependency/build/CI updates increase integration risk despite many changes being incremental.

Overview
Adds distroless Docker images for clickhouse-server and clickhouse-keeper and introduces a new compiled clickhouse docker-init program to replace shell-based entrypoints, including initdb script execution and user/db bootstrapping.

Improves robustness and compatibility across runtime/query execution: fixes partial-write handling in Poco stream buffers and HTTP chunked writes, tightens Content-Length enforcement, and surfaces SSL read/write/handshake timeouts as TimeoutExceptions. Extends analyzer optimizations (notably rewriting Map key lookups to dynamic key subcolumns in filters) and adds plumbing for MATERIALIZED CTE metadata through the query tree/identifier resolution.

Refines optimizations and correctness checks: makes quantile fusion stable with duplicate levels, hardens inverse dictionary lookup rewrites with semantic-safety guards and set overflow settings, and fixes several aggregate-function edge cases (self add/sub in BSI, safer quantileTiming deserialization, legacy null-adapter handling for sumCount, correct signedness in LLVM codegen).

Updates CI/build and dependencies: switches stateless tests to Node 20 + npm azurite, adds distroless to docker build matrix/tests, disables backport-branch automerge, and bumps/adjusts bundled deps and build flags (e.g., OpenSSL 3.5.6, xz updates, jemalloc LTO disable). Documentation is updated for MATERIALIZED CTEs, Map bucketed serialization, and related notes.

Reviewed by Cursor Bugbot for commit c04e83b. Bugbot is set up for automated code reviews on this repo. Configure here.

@robot-clickhouse robot-clickhouse added release Label for release pull request release-lts LTS release-branch (label name is hardcoded into backport automation) labels Mar 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Mar 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a5b4420]

Summary: ✅

@CLAassistant

CLAassistant commented Jun 2, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@mintlify

mintlify Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ClickHouse-docs 🔴 Failed – Jul 5, 2026, 4:32 AM

robot-clickhouse and others added 19 commits November 13, 2026 04:35
…calar overriding a policy's scalar subquery
…he_bypass` on 26.3

`clickhouse-client --external ... --scalar` came with #110419, which is not in 26.3, so the client
ends the external group at `--scalar` and rejects the following `--file=` as an ambiguous option.
Keep the policy baseline and the distributed scalar checks.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=127824&sha=5d92a7dcc4a582e404c63969284411152f71d735&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20distributed%20plan%2C%20parallel%2C%201%2F2%29
PR: #127824

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…query_background_access` when the session date is ahead of the server date
26.3 lacks the extended DateTime64 range, so values before 1900 are displayed
clamped to 1900-01-01. The stored values are unchanged (05444 still checks the
exact nanoseconds).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…geTree cleanup thread when `max_replicated_logs_to_keep = 0`
…r an exception while building the index
…eStreams signature

26.3's `ISerialization::deserializeBinaryBulkWithMultipleStreams` takes a `rows_offset`
argument that master dropped, so the backported `gtest_low_cardinality_serialization.cpp`
called it with 5 arguments instead of 6 ("too few arguments to function call, expected 6,
have 5"). Pass `rows_offset = 0` so the whole column is deserialized from the start, matching
the `serializeBinaryBulkWithMultipleStreams(column, 0, column.size(), ...)` call above it.

#128526
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128526&sha=9d4ab398b3b4bdd7f059bbb2fa5e552712902681&name_0=BackportPR&name_1=Build%20%28amd_debug%29

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ryBulkWithMultipleStreams

26.3's `deserializeBinaryBulkWithMultipleStreams` takes `ColumnPtr & column` as its first argument,
whereas master takes `IColumn &`; the backported test passed `*column` (an `IColumn &`), which cannot
bind to `ColumnPtr &`. Hold the column as a `ColumnPtr` and pass it directly, as 26.3's own callers do
(e.g. `SerializationDetached`). Completes the previous commit, which only added the `rows_offset` argument.

#128526
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128526&sha=19312c0cc4c8f9306cfae883249fee2b3149c286&name_0=BackportPR&name_1=Build%20%28amd_debug%29

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…from SQL SECURITY DEFINER views without an invoker
On 26.3, with `table_engines_require_grant = false`, `TABLE ENGINE` on
`Distributed`, `Kafka` and `RabbitMQ` is implicitly revoked unless the
user also has `READ` and `WRITE` on the `REMOTE`, `KAFKA` and
`RABBITMQ` sources. So `CREATE TABLE ... ENGINE = Distributed` failed
with `ACCESS_DENIED` in the test setup.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128668&sha=latest&name_0=BackportPR
PR: #128668

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The loop in `DistributedAsyncInsertBatch::recoverBatch` read the header
of `files.back()` on each iteration, so only the last file was validated
and the mixed-identity check added by #117798 compared the last file with
itself and never fired. On master this was fixed by #105281, which was not
backported to 26.3.

Related: #105281
PR: #128668

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…flush context

On 26.3 `async_insert` is enabled by default, and the flush context of
`AsynchronousInsertQueue` is built from the global context with only
`Context::setUser`, so its `ClientInfo` user names are empty. A direct
`INSERT` into a `Distributed` table over a cluster with an interserver
`<secret>` was therefore flushed to the shard with an empty `initial_user`,
which the shard executes in interserver mode with full access. This is the
same hole that #117798 closes for the definer of `SQL SECURITY DEFINER`
views, and `test_streaming_engines_definer_interserver_secret::test_rabbitmq[tenant]`
caught it in its control case: the tenant's direct insert was accepted on the
shard.

Bring the fix from #107541 (merged to master in edb9295): capture
`current_user`, `initial_user` and `authenticated_user` in the async insert
queue key at push time and restore them on the flush context. The only
conflict is in `InsertQuery::toTupleCmp`, where 26.3 already uses
`query_str_with_secrets` instead of `query_str`.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128668&sha=0dc411340520ff9f52dfdb04638aa63196712372&name_0=BackportPR&name_1=Integration%20tests%20%28amd_tsan%2C%203%2F6%29
PR: #128668
Related: #107541

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On 26.3, with `table_engines_require_grant = false`, `TABLE ENGINE ON
Distributed` is implicitly revoked unless the user also has `READ` and
`WRITE` on `REMOTE`, so `CREATE TABLE ... ENGINE = Distributed` by the
tenant failed with `ACCESS_DENIED` in the test setup. Same as the fix
for test_streaming_engines_definer_interserver_secret.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128668&sha=0dc411340520ff9f52dfdb04638aa63196712372&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan%2C%20db%20disk%2C%20old%20analyzer%2C%203%2F8%29
PR: #128668

Co-Authored-By: Claude Opus 5.5 <[email protected]>
alexey-milovidov and others added 30 commits November 20, 2026 17:20
Backport #131789 to 26.3: Check the aggregates of deserialized query plan steps against their input
Backport #131731 to 26.3: Ignore publisher confirms with an unknown delivery tag in `RabbitMQProducer`
Hide the credentials in the url of an HTTP dictionary source (26.3)
…ueue after a failed materialized-CTE query
Backport #113397 to 26.3: Fix a table permanently stuck in the drop queue after a failed materialized-CTE query
Backport #132755 to 26.3: Fix double destroy of aggregate states when `create` throws after `destroy`
Backport #110665 to 26.3: Report object storage disk as local when it is using local object storage
Backport #118993 to 26.3: Fix a logical error when a setting holding a `disk(...)` value is assigned twice
…BLOCK` for a `GROUP BY` key inside an `if` chain or an `ORDER BY` tuple
Backport #125828 to 26.3: Fix wrong results and `NOT_FOUND_COLUMN_IN_BLOCK` for a `GROUP BY` key inside an `if` chain or an `ORDER BY` tuple
Backport #133464 to 26.3: Remove the background cleanup of unused directories in `store/`
… merge of a table with a move or recompression TTL
Backport #121536 to 26.3: Fix NOT_FOUND_COLUMN_IN_BLOCK on a vertical merge of a table with a move or recompression TTL
…e libunwind ppc64le `unw_getcontext` fix
Backport #129808 to 26.3: Update `contrib/llvm-project` to pick up the libunwind ppc64le `unw_getcontext` fix
Backport #124281 to 26.3: Bump `postgres` from REL_18_4 to REL_18_6
Backport #133530 to 26.3: Fix handling of groups and named unions in CapnProto format
Backport #129383 to 26.3: Require the same source and `WRITE` for queue `after_processing`

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Label for release pull request release-lts LTS release-branch (label name is hardcoded into backport automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.