Skip to content

Antalya 26.3: Bump to 26.3.77 - #3006

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

blau-ai wants to merge 202 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 20 commits November 28, 2026 15:16
…irtual column of `url` is requested before another virtual column
…4815

Backport ClickHouse#134815 to 26.3: Fix a crash when the `_headers` virtual column of `url` is requested before another virtual column
…1728

Backport ClickHouse#131728 to 26.3: Forbid users with the same name in different user directories
…4279

Backport ClickHouse#134279 to 26.3: Fix TTL merges of tables with a column TTL on an `ALIAS` or `EPHEMERAL` column
…2506

Backport ClickHouse#132506 to 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)
- 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 [701ac30]

@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.

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.