Skip to content

Release pull request for branch 26.5 - #105429

Closed
robot-clickhouse wants to merge 726 commits into
masterfrom
26.5
Closed

robot-clickhouse wants to merge 726 commits into
masterfrom
26.5

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented May 20, 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

Medium Risk
Touches security-sensitive internal/DDL execution gating by replacing query_kind checks with a new server-set flag, which could affect ON CLUSTER/replication/backup behavior if mis-propagated. Also tightens Arrow/Native input validation, which may reject previously-accepted malformed inputs and impact ingestion edge cases.

Overview
Introduces a new Context flag is_ddl_or_on_cluster_internal (server-set and non-spoofable) and switches multiple code paths from ClientInfo::QueryKind::SECONDARY_QUERY to this flag for security-sensitive decisions, including internal backup/restore gating, Replicated DB DDL handling, ON CLUSTER/UUID-macro allowances, and context creation in DDL/replication/system operations.

Hardens Arrow ingestion by reading geo metadata from the Arrow schema, validating BinaryArray offsets/lengths against buffer bounds (and handling absent/empty buffers), and avoiding mutable_data() usage in geo parsing; adds regression tests for corrupted Arrow offsets and geo metadata.

Improves error classification for Variant deserialization under Native format (reports INCORRECT_DATA instead of LOGICAL_ERROR), adds an integration test for malformed Native Variant payloads, and updates planner behavior to disable/forbid parallel replicas when additional_table_filters is used without serialize_query_plan (with new stateless tests).

Minor: CI style job skips test-number gap checks on release/backport branches, MySQL protocol test fixes dotnet working dir, and release metadata (version/contributors) is updated.

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

@robot-clickhouse robot-clickhouse added the release Label for release pull request label May 20, 2026
@clickhouse-gh

clickhouse-gh Bot commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fdd003d]

Summary: ✅

@CLAassistant

CLAassistant commented May 29, 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 🟢 Ready View Preview Jul 5, 2026, 8:12 AM

Backport #112599 to 26.5: Bump `sqlite-amalgamation` from 3.41.2 to 3.53.4
@thevar1able
thevar1able requested a review from a team as a code owner July 31, 2026 09:22
alexey-milovidov and others added 23 commits July 31, 2026 09:45
…HERE

The backported fix makes `ReadFromMergeTree` with FINAL keep the sorting
key columns required for merging even when the parent step does not need
them, which made `optimizePrewhere` throw the logical error
'Input-output header mismatch after removing unused columns after pushing
down filters to prewhere' (seen in Stateless amd_asan_ubsan and Stress
amd_tsan runs of this backport:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=112540&sha=449da52fbecae1df9c1452df285115a1e8d722eb&name_0=BackportPR).
#112540

Master handles this case by absorbing the extra columns into the parent
step's DAG (commit fc52b1f, 'Absorb extra columns after pushing down
filter to prewhere'), which 26.5 never received. Adapt that commit to the
name-based `absorbExtraChildColumns` variant present on 26.5 and bring
its regression test along.

Co-Authored-By: Claude Fable 5 <[email protected]>
Backport #111629 to 26.5: Fix overflow while parsing in system.zookeeper_info
Backport #111489 to 26.5: Fix typo in complex schema evolution
Backport #112297 to 26.5: Snapshot backup entries should not use backup io thread
…teral_and_nested_object` not working with typed paths in JSON
Backport #107927 to 26.5: AI functions: retry transient network errors like the url table function
26.5 gained #105701 (`api_key` optional) and #107927 (retry transient network
errors) after this backport branch was cut, so the conflict resolution keeps both
and drops the earlier `api_key`-required adaptation. `aiEmbed` stays at the master
signature `aiEmbed(text, model[, params])`; `introduced_in` stays 26.5.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Backport #111518 to 26.5: Fix mutations with query parameters in IN PARTITION
Backport #100407 to 26.5: Fix exception when Iceberg format version is upgraded by external tool
Backport #109356 to 26.5: Fix data loss when a merge races ALTER RENAME COLUMN on a column without a default expression
Backport #111721 to 26.5: Fix NOT_FOUND_COLUMN_IN_BLOCK on FINAL when the sort key filter is moved to PREWHERE and not projected
Backport #109232 to 26.5: AI functions parameter map
…26.5

Every 26.5 pull request keeps failing the TSan integration shards with
"Sanitizer assert found for instance zoo3-1", whose Keeper container log carries a
ThreadSanitizer data race between the slot payload write in
NonblockingBoundedQueue::tryPush and the read in tryPop. The release/acquire handoff
on slot.pos orders every access to a slot payload, so the report is a false positive.

master fixed this in #112695 by registering the two anchored tryPush patterns through
__tsan_default_suppressions. That fix is not on 26.5, and it cannot be cherry-picked:
base/base/sanitizer_options.h does not exist on this branch, so the hook goes beside
the existing __tsan_default_options in programs/main.cpp, inside the same
"#ifdef THREAD_SANITIZER" block.

The change is purely additive here. #107083, which added the NO_SANITIZE_THREAD
attributes that #112695 removed as ineffective, was never backported either, so there
is no attribute to delete. A function attribute could not have suppressed these
reports anyway: the reported access happens in the element type's implicitly
generated move assignment, a separate function that stays instrumented, and the
attribute additionally prevents it from being inlined into the annotated one.

Only tryPush is listed. tryPop writes the payload too, but the dequeue_pos
compare-exchange gives one consumer sole ownership of a slot before the move-out, so
two pops never touch one payload concurrently, whatever the consumer count. A tryPop
entry would be dead, and a "race:" entry also hides heap-use-after-free reports
through the frame it names.

Sanitizer builds only: outside THREAD_SANITIZER the hook is preprocessed away, and
the queue header change is a comment.

Co-Authored-By: Claude Fable 5 <[email protected]>
…sion-26.5

Backport the runtime TSAN suppression for `NonblockingBoundedQueue` to 26.5
Backport #110449 to 26.5: AI functions: send X-ClickHouse-AI-Function header from OpenAI provider
CurtizJ and others added 28 commits August 25, 2026 04:37
Backport #115304 to 26.5: Do not bypass row policies in the mergeTreeIndex table function
The MV form of the case relies on master's StorageTimeSeries rework, where the constructor ignores
the ColumnsDescription it is handed. This branch still validates it, so the view's `SELECT 1 AS a`
schema is rejected with THERE_IS_NO_COLUMN before the drop under test is reached. The named-table
scenario covers the same fix.
Backport #114285 to 26.5: Register Iceberg namespace in the catalog before writing table files (needed for SeaweedFS)
Backport #114953 to 26.5: Fix an unkillable hang when dropping a low-sorting-name TimeSeries table
Backport #111329 to 26.5: Use bloom_filter skip index for IN with transform_null_in=1 and NULL-free set
Backport #115701 to 26.5: Validate aggregate function states on deserialization
…json_type_parsing for inserts in some cases
Backport #115334 to 26.5: Do not let SET <name> = DEFAULT bypass the settings constraints
Backport #115704 to 26.5: Do not expose uninitialized memory in query results
Backport #115329 to 26.5: Fix not applying max_dynamic_subcolumns_in_json_type_parsing for inserts in some cases
Backport #115708 to 26.5: Bound the size of the PostgreSQL startup message
Backport #115976 to 26.5: Fix a segfault of showCertificate when TLS certificates are provisioned by ACME
Backport #115222 to 26.5: Bound text index posting list deserialization
Backport #107991 to 26.5: validate discriminators in Variant binary bulk deserialization
…oint`

On 26.5, `parseWKBFormat` does not support the `MultiPoint` geometry (WKB type 4),
so the type-4 query fails with `BAD_ARGUMENTS` before any recursion happens.
Drop that line and keep the `MultiLineString`/`MultiPolygon` (types 5/6) checks,
which exercise the backported `checkStackSize` guard and return `TOO_DEEP_RECURSION`.

Same adaptation as the sibling backports of #115700.

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

Co-Authored-By: Claude Fable 5 <[email protected]>
Backport #108470 to 26.5: Hide legacy storage_* credential settings of DataLakeCatalog
Backport #115700 to 26.5: Bound the recursion in several parsers and schema readers
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.