Skip to content

Antalya 26.3: Bump to 26.3.77 - #3006

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

blau-ai wants to merge 204 commits into
antalya-26.3from
bump/antalya-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 7 commits November 30, 2026 19:09
…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)
- src/Analyzer/FunctionNode.h (both modified)
- src/Disks/DiskType.cpp (both modified)
- src/Storages/ObjectStorage/StorageObjectStorageConfiguration.cpp (both modified)
- src/Storages/StorageURLCluster.cpp (both modified)
- src/Storages/VirtualColumnUtils.h (both modified)
Merged both sides in all 7 files, keeping Altinity's version/branding and refactors and taking upstream's new code.
@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)
  • src/Analyzer/FunctionNode.h (both modified)
  • src/Disks/DiskType.cpp (both modified)
  • src/Storages/ObjectStorage/StorageObjectStorageConfiguration.cpp (both modified)
  • src/Storages/StorageURLCluster.cpp (both modified)
  • src/Storages/VirtualColumnUtils.h (both modified)

Commits:

  • 27706d2: merge with the conflicts committed as-is

  • f0f56cf: resolution

  • cmake/autogenerated_versions.txt: took upstream's patch 77 and githash. I kept Altinity's tweak and flavour, so describe and string are v26.3.77.20002.altinityantalya and 26.3.77.20002.altinityantalya. I wrote that string by hand, so it's worth a glance.

  • ci/docker/binary-builder/Dockerfile: upstream dropped the software-properties-common install and the PPA step. I accepted that and kept Altinity's clang-tools remove/install lines in the single apt-get RUN.

  • src/Analyzer/FunctionNode.h and src/Storages/VirtualColumnUtils.h: both sides added separate members at the same spot, so I kept both. These are the settings_changes accessors plus isConvertedToNullable(), and iceberg_metadata_file_path plus http_response_headers.

  • src/Disks/DiskType.cpp: kept Altinity's objectStorageTypeFromString and toString(ObjectStorageType) and added upstream's isDiskObjectStorage. I closed the functions properly.

  • StorageObjectStorageConfiguration.cpp and StorageURLCluster.cpp:

    • In StorageObjectStorageConfiguration.cpp, I took upstream's initialized_from_named_collection = true and kept Altinity's member-style fromNamedCollection call.
    • In StorageURLCluster.cpp, Altinity's class-based UrlTaskIterator replaced the lambda that upstream changed. I moved upstream's credential-check loop into its operator(). The class now takes and stores ContextPtr context for that loop.

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [6e718ee]

@zvonand

zvonand commented Dec 3, 2026

Copy link
Copy Markdown
Member

@blau-ai fix fasttest fails

… callers

The 26.3.77 backport of ClickHouse#110665 added a run_local_paths_check parameter to
ObjectStorageFactory::create; update the two Antalya-only call sites.

Signed-off-by: blau-ai <blau-ai@users.noreply.github.com>
Signed-off-by: blau-ai <blau-ai@users.noreply.github.com>
registerQueueStorage.cpp reads it; the merge conflict resolution placed it in a private section.

Signed-off-by: blau-ai <blau-ai@users.noreply.github.com>
@blau-ai

blau-ai commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Fast test fixed: three compile errors from the 26.3.77 merge, now on this branch

Fast test was failing in the Build ClickHouse step, not in a test. Ninja stopped at the first error, so the CI log showed only one of them. Builds on the blau builder turned up two more. All three came from the 26.3.77 merge and its conflict resolution:

# Error Cause Fix
1 DistributedPlanExecutor.cpp:718: too few arguments to function call, expected 7, have 6. Same problem in Storages/ObjectStorage/Utils.cpp:114 The upstream backport of ClickHouse#110665 added a run_local_paths_check parameter to ObjectStorageFactory::create. Two Antalya-only callers were not updated. Pass /*run_local_paths_check*/ false in both places. These storages come from server config or are created internally, not from a user-defined custom disk, so the custom-local-disk path check doesn't apply. Access-check and host-filter arguments are unchanged. — d67dfbe
2 StorageURLCluster.cpp:147: constructor parameter 'context' shadows the field 'context' of 'UrlTaskIterator' (-Wshadow-field-in-constructor) The conflict resolution added a context member to Antalya's UrlTaskIterator class, for upstream's new credential check. Renamed the constructor parameter to context_. — 2e42b25
3 registerQueueStorage.cpp:164: 'initialized_from_named_collection' is a private member of 'StorageObjectStorageConfiguration' The new field landed in a private: section of the Antalya header. Upstream declares it public. Moved it to the public section, as upstream has it. — 701ac30

Before the final build I also checked the Antalya-only callers of the other APIs whose signatures changed in this merge. That covered tryGetColumnSizes, IMetadataStorage::isRemote, DeserializedInputHeaders, StorageURLSource::setCredentials, export/move-destination access and trySetStorageInTableJoin. Nothing else was stale.

Local validation (Debug build, no sanitizers):

  • Build: the first two builds stopped on errors 2 and 3 above. The third build, of 701ac30, succeeded.
  • Stateless tests on that build: 00001_select_1, 03762_create_as_url_cluster and 04035_url_cluster_callback_cancel_race passed. 02721_url_cluster failed with Connection refused to localhost:11111, the MinIO endpoint, which the builder doesn't have. That failure is unrelated to the change.

CI on this PR still has the final word. The new run will also show whether any non-fasttest build (Rust/delta-kernel, sanitizers) has more merge problems.

The DCO check is also red. It flags the merge commits and is not something code changes fix.

@zvonand

zvonand commented Dec 4, 2026

Copy link
Copy Markdown
Member

@blau-ai fix fasttest

Fast test builds without Parquet support, so the test fails there with
UNKNOWN_FORMAT.
@blau-ai

blau-ai commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator Author

Fast test fix (re: #3006 (comment))

What failed: one test in Fast test (Having 1 errors! 575 tests passed):

  • 05802_parquet_plain_string_fully_filtered_pages failed with Code: 73. DB::Exception: Unknown format Parquet. (UNKNOWN_FORMAT)

Root cause: the test came in with the backport of upstream ClickHouse#131797 (3495f5f). The Fast test build has no Parquet/Arrow support, and the test had no no-fasttest tag. Other Parquet tests in this repo, such as 02718_parquet_metadata_format.sh, already have that tag. The failure comes from the test's tags, not from a code regression.

Fix: pushed 2443af0 to this branch. It adds # Tags: no-fasttest to the test, so it still runs in the full stateless suites.

Validation: none locally. The change is a one-line tag and needs no build. The CI run on 2443af0 still has to confirm Fast test is green and the test passes in the regular stateless jobs.

Not addressed: the DCO check is also red. That is about commit sign-offs, not tests.

@zvonand

zvonand commented Dec 4, 2026

Copy link
Copy Markdown
Member

@blau-ai

@blau-ai

This comment has been minimized.

@zvonand

zvonand commented Dec 4, 2026

Copy link
Copy Markdown
Member

@blau-ai fix unittests fail caused by this PR

@blau-ai

blau-ai commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator Author

Unit tests fix: pushed 6e718ee

What failed. Unit tests (asan) and Unit tests (ubsan) fail on the same test, ParserPRQL/ParserTest.parseQuery/1 (src/Parsers/tests/gtest_Parser.cpp:72 and :85). The SQL generated from the PRQL query no longer matches the expected string. The new output folds the intermediate table_1 CTE into table_0:

-WITH
-    table_1 AS
-    ( SELECT country, city, c + some_derived_value AS _expr_1 FROM matches WHERE start_date > ... ),
-    table_0 AS ( ... AVG(_expr_1) ... FROM table_1 WHERE _expr_1 > 0 ... )
+WITH table_0 AS
+    ( ... AVG(c + some_derived_value) AS _expr_0, MAX(c + some_derived_value) AS aggr
+      FROM matches WHERE (start_date > toDate('2023-05-30')) AND ((c + some_derived_value) > 0) ... )

Root cause: this PR. The bump updates rust/workspace/Cargo.lock, which moves prqlc / prqlc-parser from 0.13.10 to 0.13.14 (through the upstream Rust backports, e.g. 3747e71 "Use Rust nightly-2026-11-02"). The newer prqlc produces different SQL. Upstream hit the same problem and fixed the test expectation in ClickHouse/ClickHouse@1941bea97a5 ("Fix recorded prql test result due to prqlc update", part of ClickHouse#98602). That commit never reached upstream 26.3, which still has the old expectation.

Fix. I cherry-picked that upstream commit (-x) onto the PR head. It's a one-line change to the expected string in src/Parsers/tests/gtest_Parser.cpp. The new expected string is identical, character for character, to the formatted_ast that the failing CI unit-test binary actually produced.

Validation

  • ✅ The new expectation matches the actual output of this PR's CI unit-test binary (from result_pr.json).
  • ⚠️ My local build can't run this test: the builder compiles without Rust, so both PRQL cases throw PRQL is not available there. The next Unit tests (asan/ubsan) run on this PR is the real check.

The other red checks (Integration amd_binary 1/5 and 5/5, Stress ubsan, Grype, DCO) weren't part of this request and I haven't triaged them.

@zvonand

zvonand commented Dec 5, 2026

Copy link
Copy Markdown
Member

@blau-ai fix test fails here if they are caused by this PR

@blau-ai

blau-ai commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator Author

I found nothing to fix in this PR, so I haven't pushed a commit: none of the red checks on 6e718ee come from the bump.

Integration tests (all 13 shards red): CI infra, not this PR

  • I sorted all 4,820 failing tests from result_pr.json. Every one fails the same way, in cluster.start() before any ClickHouse code runs:
    helpers/cluster.py:3513 - retry(...)(run_and_check, images_pull_cmd, timeout=600)
    Got exception pulling images: Command '['docker', 'compose', ..., 'pull']' timed out after 600 seconds
    E   Failed: Timeout (>900.0s) from pytest-timeout.
    
    I found no test failures from assertions or server errors.
  • In shard 6/8 the Docker daemon log shows pulls through dockerhub-proxy stalling and being cancelled (Not continuing with pull after error: context canceled) for images like clickhouse/minio-minio, altinityinfra/s3-proxy and altinityinfra/azurite. The shard then hit its time limit (Test execution was interrupted (exit status: 2)).
  • The PR changes nothing in how integration tests run: no changes to tests/integration/helpers, compose/, conftest.py or the integration runner image. The only ci/ changes are in the binary-builder and fasttest Dockerfiles.
  • Integration passed a day earlier on other antalya-26.3 PRs: Antalya 26.3 Backport of #124278 - Bump openssl from 3.5.8 to 3.5.9 #3021 is all green, and Antalya 26.3 Backport of #3001 - Fix quadratic ExecutingGraph::addEdges for processors with many ports #3019 has 3 failures across 2 shards. This was a temporary registry or proxy outage during this run (about 01:09–04:11 UTC on 2026-12-05).

➡️ Action: re-run the failed integration jobs on run 47441279550. If the pulls still hang, someone needs to check the Docker Hub proxy on the runners.

Other red checks: not caused by this PR

Once the integration re-run finishes, its results will show whether there are any real regressions; happy to look again then.

@zvonand

zvonand commented Dec 5, 2026

Copy link
Copy Markdown
Member

@blau-ai

@blau-ai

blau-ai commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator Author

4 failing checks, 0 caused by this PR: 1 infra (runner too small), 2 Grype scans that already fail on base, 1 DCO that is expected for a version bump.

Check Classification PR-caused? Next step
Integration tests (amd_asan, db disk, old analyzer, 1/8): 3/596 failed, all in test_scheduler_query infra: the test asks for 15 CPUs, the runner has 12 No (high confidence) Re-run the shard; separately fix the test's cpu_limit
Grype Scan clickhouse-keeper + clickhouse-server …-alpine (and their GrypeScan jobs) pre-existing: busybox CVEs in the Alpine base image No (high confidence) Nothing to do in this PR; no fixed busybox release yet
DCO expected: 114 cherry-picked upstream commits have no Signed-off-by No (high confidence) Ignore/override as usual for bump PRs

Every other check is green or skipped. Nothing in the bump itself needs fixing. Re-run the integration shard if you want a fully green run before merging.

Integration tests (amd_asan, db disk, old analyzer, 1/8): infra, not PR-caused

All 3 failures are the same test_scheduler_query module failing in its start_cluster fixture. No test code ran:

FAIL test_scheduler_query/test.py::test_create
FAIL test_scheduler_query/test.py::test_max_concurrent_queries
FAIL test_scheduler_query/test.py::test_max_waiting_queries_reached
...
E    Container roottestschedulerquery-gw1-node-1  Creating
E   Error response from daemon: Range of CPUs is from 0.01 to 12.00, as there are only 12 CPUs available

Cause: tests/integration/test_scheduler_query/test.py:19 sets cpu_limit=15, which helpers/cluster.py writes into docker-compose as cpus: 15. Docker refuses to create a container that asks for more CPUs than the host has, and this runner had 12.

Why it's not this PR:

Suggested fixes (separate from this PR):

  • Re-run the shard. It should pass on a runner with 16 or more CPUs.
  • Lasting fix: lower cpu_limit in test_scheduler_query/test.py to 12 or less, or have helpers/cluster.py cap cpus: at os.cpu_count().
Grype Scan (keeper, server-alpine): pre-existing, not PR-caused

Both images report the same 3 High findings, all against busybox 1.38.0-r9 from the Alpine 3.25 base layer (packages busybox, busybox-binsh, ssl_client):

Fail CVE-2026-38753@nvd:cpe,High
Fail CVE-2026-38754@nvd:cpe,High   # heap overflow in ifsbreakup() (shell/ash.c)
Fail CVE-2026-38755@nvd:cpe,High   # heap overflow in evalcommand() (shell/ash.c)
'fix': {'versions': [], 'state': ''}

Next step: nothing to do in this PR. Rebuild once Alpine ships a fixed busybox, or add these CVEs to the Grype ignore list if the team accepts the risk.

DCO: expected for upstream bump, not a code problem
There are **114 commits** incorrectly signed off, the check **did not pass**.
| :red_circle: | a938be4 | Backport #130755 to 26.3: Fix Keeper crash on `Che...| Sign-off not found |
| :red_circle: | e9f6209 | Update autogenerated version to 26.3.64.3 and cont...| Sign-off not found |

The commits without a sign-off are upstream ClickHouse backports and version commits brought in by the bump. Merge commits are skipped by the check. Other Antalya PRs (#3033, #3021) also fail DCO. Rewriting upstream history to add sign-offs isn't practical, so handle this the way earlier bump PRs were handled (override or ignore).

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.