8000 Stable 26.3: Bump to 26.3.77 by blau-ai · Pull Request #3007 · Altinity/ClickHouse · GitHub
[go: up one dir, main page]

Skip to content

Stable 26.3: Bump to 26.3.77 - #3007

Draft
blau-ai wants to merge 203 commits into
stable-26.3from
bump/stable-26.3/v26.3.77.6-lts
Draft

blau-ai wants to merge 203 commits into
stable-26.3from
bump/stable-26.3/v26.3.77.6-lts

Conversation

@blau-ai
@blau-ai blau-ai commented Dec 3, 2026
Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

...

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

robot-clickhouse and others added 30 commits November 13, 2026 15:35
`apt.llvm.org` rotated `llvm-snapshot.gpg.key`. Master and the other
release branches already carry the new hash (d9ef955), and 26.3's
`test-base` image has it too, but 26.3's `fasttest` image still had the
old one. It went unnoticed because the image was not rebuilt until this
backport touched `ci/docker/fasttest/Dockerfile`.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=130801&sha=c9a90e1eb9eddba62fe2250ee989d42a2ee5a9ec&name_0=BackportPR&name_1=Dockers%20Build%20%28amd%29
PR: ClickHouse#130801

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The PPA was added in 2019 to get gcc-9. None of the packages we install
come from it anymore, but `add-apt-repository` queries the Launchpad API,
and a timeout there broke `Dockers Build` on both architectures:
`TimeoutError: [Errno 110] Connection timed out`.

Also drop `software-properties-common`, which was installed only for
`add-apt-repository`.

https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=117346&sha=7ef2c32ada54daaef89b1fcb0a7b10c5299f86ca&name_0=PR&name_1=Dockers%20Build%20%28amd%29
ClickHouse#117346

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 884f6b3)
…lta Lake columns to their physical names
…n to alias under prefer_column_name_to_alias
…nction_with_if defeating short-circuit evaluation
…8697

Backport ClickHouse#118697 to 26.3: Fix optimize_rewrite_aggregate_function_with_if defeating short-circuit evaluation
…9192

Backport ClickHouse#119192 to 26.3: Analyzer: resolve ambiguous column to alias under prefer_column_name_to_alias
…et format of the `Template` input format
…1269

Backport ClickHouse#131269 to 26.3: Reject negative and overflowing values of `Seconds` settings
Conflicts in `src/Core/Field.cpp` and `src/Interpreters/InterpreterCreateQuery.cpp`
were between equivalent code (a comment wording and the position of the
`getExportAccess` call), not part of this backport; took the `26.3` side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1730

Backport ClickHouse#131730 to 26.3: Require `${data}` in the result set format of the `Template` input format
…ading legacy `String` states of `any`/`min`/`max`
…a Lake partition pruning when the filter's set holds `NULL`

(cherry picked from commit 0cc79e2)
… test 26.3 can run

26.3's KeyDescription::getKeyFromAST takes no `virtuals` argument (ClickHouse#102827 is
not on 26.3), so drop the `{}` the cherry-pick carried.

The test built its Delta tables with INSERT INTO FUNCTION deltaLakeLocal under
allow_delta_lake_writes. On 26.3 that setting is still called
allow_experimental_delta_lake_writes, and a partitioned INSERT of a NULL value
fails with NOT_IMPLEMENTED (ClickHouse#111793 is not on 26.3). Write the same tables by
hand instead, as 26.3's 05237 test does: Parquet data files through file() and
one add action per file, a NULL partition value committed as a JSON null under
__HIVE_DEFAULT_PARTITION__.

Two cases fail on 26.3 with and without this change, so they are dropped:
`ifNull(p, 0) IN (0)` prunes the NULL partition (a MergeTree table partitioned
by the same Nullable column returns the same wrong rows on 26.3), and
`has([NULL, 'a'], s)` throws CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN (ClickHouse#115647 is
not on 26.3). On 26.3 the fix keeps the NULL partition's file for
`has([5, 7], p)`, so that case prunes 1 file instead of 2 (rows unchanged):
26.3 builds no set index for a UInt8 array over a Nullable(Int64) key; 26.3's
MergeTree partition pruning does not use that predicate on a Nullable key either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 25da41d)
…prunes no file

On 26.3 the Nullable key condition does not prove that this predicate is
false for the `NULL` partition, so the partition pruner keeps its file and
prunes 0 files instead of 1. The rows are the same; keeping a file is the
conservative outcome. Reproduced with the `build_arm_release` binary of this
PR (26.3.61.91); the other cases match the reference.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 715faa4)
…0952

Backport ClickHouse#130952 to 26.3: Reject named collection DDL in readonly mode and with `allow_ddl = 0`
Conflicts in `src/Core/Field.cpp` and `src/Interpreters/InterpreterCreateQuery.cpp` are outside
of the backported change; resolved by taking the `26.3` version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 26.3 history was rebuilt on 2026-11-13, so the backport commit was based on an
old 26.3 commit. Take the current 26.3 tree and keep only the backported change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…17-backport-130192

Backport ClickHouse#130192 to 26.3: Keep the `NULL` partition in Delta Lake partition pruning when the filter's set holds `NULL`
…1795

Backport ClickHouse#131795 to 26.3: Reserve the appended byte when reading legacy `String` states of `any`/`min`/`max`
…1029

Backport ClickHouse#131029 to 26.3: Fix use-after-free on renaming Delta Lake columns to their physical names
…0997

Backport ClickHouse#130997 to 26.3: Keep a delayed task valid when overwriting its deadline fails
# Conflicts:
#	src/Core/Field.cpp
#	src/Interpreters/InterpreterCreateQuery.cpp
#	src/Processors/Formats/Impl/NativeORCBlockInputFormat.cpp
#	src/Processors/Formats/Impl/NativeORCBlockInputFormat.h
robot-clickhouse and others added 13 commits November 30, 2026 14:47
…2506

Backport ClickHouse#132506 to
8BD0
 26.3: Update mongo-c-driver to reject malformed cursor batches
…check of forwarded roles with a forged `TCP_INTERSERVER` interface
The test uses the helper `05061_query_log_interface_enum_unknown.python`
from ClickHouse#118136, which is not in this branch, add it.

And `system.query_log.interface` is `UInt8` here, not `Enum8`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e and a grant on the same name in `SHOW GRANTS`
…4818

Backport ClickHouse#134818 to 26.3: Confine `Filesystem` database tables to the database directory
…0576

Backport ClickHouse#130576 to 26.3: Mask the connection string in ODBC/JDBC bridge request URLs
…5200

Backport ClickHouse#135200 to 26.3: Fix the order of a wildcard revoke and a grant on the same name in `SHOW GRANTS`
…4994

Backport ClickHouse#134994 to 26.3: Fix a client bypassing the grant check of forwarded roles with a forged `TCP_INTERSERVER` interface
Release v26.3.77.6-lts

Conflicts committed as-is, conflict markers included:
- ci/docker/binary-builder/Dockerfile (both modified)
- cmake/autogenerated_versions.txt (both modified)
Took upstream's version bump and PPA removal, and kept Altinity's clang-tools install and Altinity version suffix.
@blau-ai
blau-ai commented Dec 3, 2026
Copy link
Copy Markdown
Collaborator Author

Port-AL: merge conflicts resolved by AI

Conflicted files:

  • ci/docker/binary-builder/Dockerfile (both modified)
  • cmake/autogenerated_versions.txt (both modified)

Commits:

  • 6b33370: merge with the conflicts committed as-is

  • 267e37b: resolution

  • cmake/autogenerated_versions.txt: upstream moved to patch 77 with a new git hash, and Altinity had its own .10001.altinitytest describe/string. I kept upstream's patch and git hash and wrote the describe/string as v26.3.77.10001.altinitytest and 26.3.77.10001.altinitytest. VERSION_TWEAK and VERSION_FLAVOUR are unchanged.

  • ci/docker/binary-builder/Dockerfile: upstream dropped the software-properties-common and ppa:ubuntu-toolchain-r/test steps. Altinity had added a clang-tools-${LLVM_VERSION} remove-and-install inside that PPA block. I took upstream's removal of the PPA and kept Altinity's clang-tools lines in the single apt-get update RUN.

  • Altinity's other Dockerfile changes (the altinityinfra/* image names and cctools tag) merged cleanly and are untouched.

  • Review point: I assumed the clang-tools install doesn't need the PPA. If it does, the PPA step would have to be restored.

@github-actions
github-actions Bot commented Dec 3, 2026 •
Copy link
Copy Markdown

Workflow [PR], commit [5cd409b]

@zvonand
zvonand commented Dec 3, 2026
Copy link
Copy Markdown
Member

@blau-ai fix fasttest fails

@blau-ai
blau-ai commented Dec 3, 2026
Copy link
Copy Markdown
Collaborator Author

Fast test fix pushed: bae1091

What failed: one test, 05802_parquet_plain_string_fully_filtered_pages (686 passed, 1 failed). The other 155 tests were skipped as usual. Error from the job log:

Code: 73. DB::Exception: Unknown format Parquet. (UNKNOWN_FORMAT)

Cause: this PR didn't break anything. Fast test builds without Parquet, and the test arrived through the backport commit 3495f5f (Backport ClickHouse#131797 to 26.3) without a no-fasttest tag. Other Parquet tests, like 00900_orc_arrow_parquet_maps.sh, already have that tag.

Fix: I added # Tags: no-fasttest to the test. That's the only change; I didn't touch any code.

Validation: I didn't run anything locally. Fast test reads the tag and skips the test, and the full stateless jobs, which do build with Parquet, will still run it. The new CI run on this PR has the final word.

Not touched: the DCO check is also red. It's about commit sign-offs, not tests, so it's outside this request.

@zvonand
zvonand commented Dec 4, 2026
Copy link
Copy Markdown
Member

@blau-ai

@blau-ai
blau-ai commented Dec 4, 2026
Copy link
Copy Markdown
Collaborator Author

8 failing checks: 2 are caused by this PR (fix needed), 1 is unclear and should be re-run, 3 are infra or policy and not caused by the PR, 2 are aggregates.

Check Classification Caused by this PR? Next step
Build (ppc64le) build break: a local Altinity patch no longer applies after the llvm-project bump Yes (high) Drop the now-redundant libunwind patch
Unit tests (asan) + Unit tests (ubsan) ParserPRQL/ParserTest.parseQuery/1 expected output is stale after prqlc 0.13.10 → 0.13.14 Yes (high) Update the expected string in gtest_Parser.cpp
SQLLogic test 4,163 new failures; every one printed in the log is Code: 241 total memory limit, with server RSS at 27.5 GiB Unclear (low–medium) Re-run; investigate server memory if it repeats
AST fuzzer (amd_debug, targeted) runner/script failure 60 s into the run, before the fuzzer started No (high) Re-run
Grype Scan (keeper, server-alpine) busybox 1.38.0-r9 CVEs in the Alpine base image, with no fixed version available No (high) Accept or waive
DCO 113 upstream backport commits without Signed-off-by No (expected for a bump PR) Ignore
PR / GrypeScan* aggregates roll-ups of the failures above n/a n/a

Everything else is green: all stateless suites, all integration suites, stress tests, fast test, the amd/arm builds and the non-targeted fuzzers. The same checks (ppc64le build, unit tests, SQLLogic) pass on sibling stable-26.3 PRs #3003 and #3020, so the two real breaks come from the upstream content merged here. Both fixes are small and touch only test or CMake code; I have not pushed them, so say the word if you want me to commit them on this branch.

Build (ppc64le): PR-caused. The Altinity ppc64le-vsx-register-save.patch is now applied twice
CMake Error at contrib/libunwind-cmake/CMakeLists.txt:37 (message):
  Failed to apply ppc64le-vsx-register-save.patch
  patching file /ClickHouse/ci/tmp/build/contrib/libunwind-cmake/UnwindRegistersSave.S
  (read from /ClickHouse/contrib/llvm-project/libunwind/src/UnwindRegistersSave.S)
  Reversed (or previously applied) patch detected! Assume -R? [n]

stable-26.3 carries an Altinity-local workaround: ca49f9d "Restore ppc64le VSX registers after unw_getcontext saves them" and 738ba55 "Point the patched UnwindRegistersSave.S at assembly.h". At configure time it patches libunwind's UnwindRegistersSave.S, adding the second xxswapd. This PR brings in edf6501 "Backport ClickHouse#129808 to 26.3: Update contrib/llvm-project to pick up the libunwind ppc64le unw_getcontext fix" (submodule 1e8c7547d52 → 85d6c707358), and that upstream fix already contains the change. patch sees it as already applied and the FATAL_ERROR stops the build. The ppc64le build passes on #3003/#3020, which still use the old submodule.

Fix: revert the two Altinity commits. Remove the whole if(ARCH_PPC64LE) … endif() block from contrib/libunwind-cmake/CMakeLists.txt (lines 20–44) and delete contrib/libunwind-cmake/ppc64le-vsx-register-save.patch. After that the directory matches upstream/26.3 exactly. git revert 738ba55ffa9 ca49f9d8a34 should apply cleanly.

Unit tests (asan / ubsan): PR-caused. The PRQL expected AST is stale after the prqlc bump
failure ParserPRQL/ParserTest.parseQuery/1
src/Parsers/tests/gtest_Parser.cpp:72
-WITH
-    table_1 AS
+WITH table_0 AS
     (
...
-            c + some_derived_value AS _expr_1
+            AVG(c + some_derived_value) AS _expr_0,
+            MAX(c + some_derived_value) AS aggr
         FROM matches
-        WHERE start_date > toDate('2023-05-30')
...

This is the only failing unit test (asan: 1 fail; ubsan: fail: 1, passed: 11051). It comes from 3747e71 "Backport ClickHouse#128815 to 26.3: Use Rust nightly-2026-11-02", which bumps prqlc/prqlc-parser 0.13.10 → 0.13.14 in rust/workspace/Cargo.lock. The new prqlc inlines the derived expression instead of emitting a separate table_1 CTE. On master, upstream fixed the expectation in a separate commit, 1941bea "Fix recorded prql test result due to prqlc update". The 26.3 backport did not include that commit, and upstream/26.3 has the same stale line.

Fix: in src/Parsers/tests/gtest_Parser.cpp:374, replace the expected string with the output CI actually produced. Note that the 26.3 formatter prints a single CTE as WITH table_0 AS on one line, so the master version of the string will not match. Use:

"WITH table_0 AS\n    (\n        SELECT\n            country,\n            city,\n            AVG(c + some_derived_value) AS _expr_0,\n            MAX(c + some_derived_value) AS aggr\n        FROM matches\n        WHERE (start_date > toDate('2023-05-30')) AND ((c + some_derived_value) > 0)\n        GROUP BY\n            country,\n            city\n    )\nSELECT\n    country,\n    city,\n    _expr_0,\n    aggr,\n    CONCAT(city, ' in ', country) AS place,\n    LEFT(country, 2) AS country_code\nFROM table_0\nORDER BY\n    aggr ASC,\n    country DESC\nLIMIT 20",
SQLLogic test: unclear. A burst of server-wide memory-limit errors
Known failures: 174,008, current failures: 178,146, new: 4,163, fixed: 25
...
random/expr/slt_good_100.test:24499
  Reason: actual result has exception and canonic result doesn't, ... Code: 241.
DB::Exception: (total) memory limit exceeded: would use 1.96 GiB (attempt to allocate chunk of 0.00 B), current RSS: 27.50 GiB, maximum: 27.49 GiB.

The job log prints 224 of the 4,163 new failures, and all 224 are Code: 241 total (server-wide) memory-limit errors. They are clustered in random/expr/slt_good_100.test (151) and random/expr/slt_good_0.test (73). The server had grown to its 27.5 GiB cap, so every query failed regardless of what it did. This is not a wrong-result regression. The other 3,963 are only in current_failures.txt, which has no reasons, so I could not confirm that they are all memory errors.

On #3003 (stable-26.3, same day) SQLLogic passed: 173,984 <= maximum 174,004. So this could be the runner, or real memory growth or retention in the server from one of the ~100 merged upstream commits. CI uploads no server log or system tables for this job, so I cannot tell which.

Next step: re-run the job. If the memory-limit burst comes back, it is likely real and worth bisecting (memory retained across queries, e.g. caches or the analyzer). If the re-run is green, treat it as runner memory pressure.

AST fuzzer (amd_debug, targeted): infra, not PR-caused

Report status: error: Job failed to produce Result due to a script error or CI runner issue. The Actions log shows a minute of zramctl: /dev/zram0: failed to reset: Device or resource busy during runner setup, then ##[error]Process completed with exit code 1. The fuzzer never started and no result was uploaded. The non-targeted AST fuzzer (amd_debug) and (amd_ubsan), and both BuzzHouse jobs, finished normally (Fuzzer exited with timeout, i.e. no crash found). Safe to re-run.

Grype Scan (keeper, server-alpine): base-image CVEs, not PR-caused
Test CVE-2026-38754@nvd:cpe,High ... package busybox 1.38.0-r9 (alpine-3.25.0) ... 'fix': {'versions': [], 'state': ''}
Test CVE-2026-38755@nvd:cpe,High ... busybox 1.38.0-r9 ...

Both images report 3 high CVEs, all in Alpine's busybox / busybox-binsh / ssl_client 1.38.0-r9. Alpine has no fixed package yet. This PR already adds apk upgrade --no-cache to docker/keeper/Dockerfile and docker/server/Dockerfile.alpine, which is the best available mitigation, and the Ubuntu-based server image scans clean (0 high/critical). This needs a waiver or a later Alpine update, not a code change.

DCO: expected for an upstream bump

There are 113 commits incorrectly signed off. All of them are upstream ClickHouse backport and version commits (e.g. a938be4, 3747e71, e9f6209), which do not carry Signed-off-by. Rewriting upstream history is not an option for a bump PR, so this is not actionable.

@zvonand
zvonand commented Dec 4, 2026
Copy link
Copy Markdown
Member

@blau-ai fix fails caused by this PR right in this PR

thevar1able and others added 2 commits December 4, 2026 18:37
…project

The bumped contrib/llvm-project (85d6c707358) already contains the extra
xxswapd in PPC64_STVS (upstream ClickHouse#129808), so applying the patch
fails at CMake configure time. Match upstream contrib/libunwind-cmake.
@blau-ai
blau-ai commented Dec 4, 2026
Copy link
Copy Markdown
Collaborator Author

I triaged the failures on bca05cea225. I pushed fixes for the two that this PR caused, onto the PR branch: bca05cea225..5cd409ba5a8.

Fixed (pushed to bump/stable-26.3/v26.3.77.6-lts)

Check Root cause Fix
Unit tests (asan) and Unit tests (ubsan): ParserPRQL/ParserTest.parseQuery/1 The bump moves prqlc from 0.13.10 to 0.13.14 in rust/workspace/Cargo.lock. The new version produces different SQL for the same PRQL query: one CTE instead of two. a168a06: cherry-pick of upstream 1941bea, "Fix recorded prql test result due to prqlc update". It updates the expected string, which is byte-for-byte what CI produced as formatted_ast.
Build (ppc64le): CMake fails with Failed to apply ppc64le-vsx-register-save.patch The bump moves contrib/llvm-project to 85d6c707358 (upstream backport of ClickHouse#129808). That commit already has the extra xxswapd n, n in PPC64_STVS in libunwind/src/UnwindRegistersSave.S, so our local patch (ca49f9d / 738ba55) no longer applies. 5cd409b: removes the local patch and its execute_process block. contrib/libunwind-cmake/ is now identical to upstream 26.3. The ppc64le VSX fix is still in place because it now comes from llvm-project.

Not fixed

  • SQLLogic test: 4,163 new failures (178,146 against a limit of 174,004). The failures the log prints are all Code: 241 MEMORY_LIMIT_EXCEEDED, with server current RSS: 27.5 GiB. Most of them are in random/expr/slt_good_100.test and slt_good_0.test. The same check passes on Stable 26.3 Backport of #102570 - Fix PREWHERE with IN subquery not using primary key for granule pruning #3003 and Stable 26.3 Backport of #3001 - Fix quadratic ExecutingGraph::addEdges for processors with many ports #3020 against the same base (173,984 failures), so this PR may be causing it, through a memory regression somewhere in the upstream changes it brings in. I couldn't find a single change to blame without a deeper investigation. Recommendation: re-run the check on the new head first. If it fails again in the same way, it is a real memory regression and needs a separate look.
  • AST fuzzer (amd_debug, targeted): a runner problem. The job ended at zramctl: /dev/zram0: failed to reset: Device or resource busy before the fuzzer started, and no report was produced.
  • Grype scans (3 high/critical vulnerabilities in the keeper and server-alpine images), DCO, and PR, which is only the summary check: none of these can be fixed by a code change in this PR, so they need a human decision.

Validation

  • I didn't build or run anything locally. The PRQL expectation is the exact output CI recorded, and it matches the upstream commit. The ppc64le change only affects the ppc64le build, which the builder can't run. I confirmed by reading UnwindRegistersSave.S at the bumped llvm commit that the fix is already in that file. CI on the new head still has to confirm both fixes.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0