Repository navigation
Release pull request for branch 26.3 - #100062
Open
robot-clickhouse wants to merge 2060 commits into
Open
robot-clickhouse wants to merge 2060 commits into
robot-clickhouse wants to merge 2060 commits into
Conversation
Contributor
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
…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]>
…cord no missing values
…geTree cleanup thread when `max_replicated_logs_to_keep = 0`
…h a huge manifest_length
…r an exception while building the index
…dictionary when reading data parts
…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]>
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
… is using local object storage
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
…a `disk(...)` value is assigned twice
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
…ectories in `store/`
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
…CapnProto format
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-serverandclickhouse-keeperand introduces a new compiledclickhouse docker-initprogram 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-Lengthenforcement, and surfaces SSL read/write/handshake timeouts asTimeoutExceptions. Extends analyzer optimizations (notably rewritingMapkey lookups to dynamic key subcolumns in filters) and adds plumbing forMATERIALIZEDCTE 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
quantileTimingdeserialization, legacy null-adapter handling forsumCount, 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., OpenSSL3.5.6, xz updates, jemalloc LTO disable). Documentation is updated forMATERIALIZEDCTEs, 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.