Skip to content

Remove CatBoost integration - #109710

Merged
rschu1ze merged 22 commits into
masterfrom
remove-catboost
Aug 26, 2026
Merged

rschu1ze merged 22 commits into
masterfrom
remove-catboost

Conversation

@rschu1ze

@rschu1ze rschu1ze commented Jul 7, 2026 •

Copy link
Copy Markdown
Member

Removes the CatBoost integration: the catboostEvaluate function, the system.models table, the SYSTEM RELOAD MODEL(S) queries and the matching SYSTEM RELOAD MODEL privilege, together with their documentation, tests and the bundled model artifacts. The CANNOT_LOAD_CATBOOST_MODEL and CANNOT_APPLY_CATBOOST_MODEL error codes are intentionally kept so their numbers are not reused.

Refs:

Changelog category (leave one):

  • Backward Incompatible Change

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

Removed the CatBoost integration. The catboostEvaluate function, the system.models table and the SYSTEM RELOAD MODEL(S) queries are no longer available. Queries, views and grants referring to them have to be migrated before the upgrade: in particular, revoke SYSTEM RELOAD MODEL from all users and roles beforehand, because an access entity whose grants still mention the removed privilege cannot be parsed on startup. Also let any in-flight SYSTEM RELOAD MODEL(S) ON CLUSTER entries drain from the distributed DDL queue before the upgrade: upgraded hosts can no longer parse such entries and will finish them with an error status instead of executing them. The same applies to persisted table metadata: a table whose column DEFAULT/MATERIALIZED/ALIAS expressions, secondary indices, constraints, projections, partition/order/sample keys, or TTL expressions still reference catboostEvaluate cannot be loaded after the upgrade (UNKNOWN_FUNCTION), so drop or rewrite such definitions beforehand. The revoke also has to cover every other carrier of serialized grants: a GRANT SYSTEM RELOAD MODEL line in the grants section of users.xml must be removed as well, because it can no longer be parsed and the server then refuses to load the users configuration at startup; on clusters with replicated (Keeper-backed) access storage, revoke the privilege before upgrading any replica, because with the default access_control_improvements.throw_on_invalid_replicated_access_entities = 0 an upgraded replica that reads a user or role still carrying SYSTEM RELOAD MODEL from ZooKeeper cannot parse it and silently drops that entity from its in-memory copy (set throw_on_invalid_replicated_access_entities = 1 to fail loudly instead); and access backups (BACKUP ... ACCESS) taken while the grant was still present cannot be restored with RESTORE ... ACCESS on the new version, so re-create such backups after the revoke.


Workflow [PR]
Sync PR [sync-upstream/pr/109710]

@clickhouse-gh

clickhouse-gh Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [50d3bd6]

Summary: ✅


AI Review

Summary

This PR removes the CatBoost integration end-to-end: the catboostEvaluate function, system.models, SYSTEM RELOAD MODEL(S), the matching privilege, bridge-helper remnants, tests, and the English docs. The code cleanup itself is mostly coherent, but the upgrade contract is still incomplete for persisted SQL carriers, and two documentation/introspection surfaces still advertise removed privileges or statements.

PR Metadata
  • Changelog category is correct: Backward Incompatible Change.
  • The Changelog entry is still incomplete for the actual upgrade surface. It names queries, views, grants, distributed DDL, and persisted table metadata, but it still omits persisted SQL UDF definitions and row-policy filters that can keep catboostEvaluate alive after the upgrade. Suggested addition: mention that persisted CREATE FUNCTION ... AS definitions and row-policy filters referencing catboostEvaluate must also be dropped or rewritten before upgrade because they will fail with UNKNOWN_FUNCTION when used.
Findings

❌ Blockers

  • [src/Functions/catboostEvaluate.cpp:41] Persisted SQL UDFs and row-policy filters are still missing from the migration path. CREATE FUNCTION ... AS bodies are stored and restored as raw SQL, and row policies likewise persist their filter text; both survive the upgrade and only hit function resolution later, so an operator can follow the current changelog and still upgrade into UNKNOWN_FUNCTION failures in ordinary queries or policy-enforced reads. The fix is to extend the migration note to cover those carriers explicitly, or keep a one-version tombstone for catboostEvaluate.
  • [src/Access/Common/AccessType.h:355] [dismissed by author -- https://github.com/Remove CatBoost integration #109710#discussion_r3725890660] Removing SYSTEM RELOAD MODEL still turns a stale replicated access entity into a silent in-memory drop on upgraded replicas under the default access_control_improvements.throw_on_invalid_replicated_access_entities = 0. The changelog now documents the workaround, but the new version still fails open on missed pre-upgrade cleanup rather than failing loudly, so this remains an operationally dangerous upgrade path.

⚠️ Majors

  • [docs/reference/system-tables/grants.mdx:19; docs/reference/system-tables/privileges.mdx:16,19] The manual GRANT docs were updated, but the autogenerated English system.grants / system.privileges pages still list SYSTEM RELOAD MODEL. After merge those docs will contradict SHOW PRIVILEGES and the actual access enum. Regenerate or otherwise update the source that feeds those autogenerated sections in the same PR.
  • [src/Parsers/ParserSystemQuery.cpp:1194; src/Storages/System/StorageSystemStatements.cpp:29] The parser removal is incomplete from a product-surface perspective: registerStatementSystem() still publishes the full SYSTEM RELOAD MODEL(S) section through StatementFactory, so system.statements and system.documentation will keep advertising a statement that the parser no longer accepts. Remove the matching block from the embedded SYSTEM statement docs as part of the same change.
Final Verdict

Changes requested.

LLVM Coverage Report

Metric Baseline Current Δ
Lines 87.20% 87.30% +0.10%
Functions 91.90% 91.90% +0.00%
Branches 79.40% 79.40% +0.00%

Changed lines: Changed C/C++ lines covered: 54/61 (88.52%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jul 7, 2026

@Algunenano Algunenano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update ci/jobs/scripts/check_style/various_checks.sh and remove the references from there too (exceptions for Context and for file size)

@alexey-milovidov alexey-milovidov self-assigned this Jul 26, 2026
@alexey-milovidov
alexey-milovidov marked this pull request as ready for review July 26, 2026 19:39
@alexey-milovidov

Copy link
Copy Markdown
Member

I like it, and hopefully we will be able to get rid of the library bridge as well.

# Conflicts:
#	src/Access/Common/AccessType.h
#	src/Interpreters/InterpreterSystemQuery.cpp
#	src/Parsers/ASTSystemQuery.cpp
#	src/Parsers/ASTSystemQuery.h
Complete the removal of leftovers after `catboostEvaluate`, `SYSTEM RELOAD MODEL(S)`
and `system.models` were dropped:

- Delete the now unused header `src/Common/ExternalModelInfo.h` (the style check
  reported it as an orphan header).
- Update the `01271_show_privileges` and `04124_parser_system_query_extra`
  references, which still listed `SYSTEM RELOAD MODEL`.
- Drop the `reload_models` command from the BuzzHouse grammar, its printer and
  its generator (the field number is kept reserved).
- Remove the stale `catboostEvaluate.cpp` / `libcatboostmodel.so_*` exceptions
  from the style check and `catboostEvaluate` from the fuzzer dictionaries.
- Remove the documentation of `catboostEvaluate`, `SYSTEM RELOAD MODEL(S)` and
  `system.models`, and the `SYSTEM RELOAD MODEL` privilege.
@alexey-milovidov

Copy link
Copy Markdown
Member

Merged master (conflicts with the SYSTEM UNLOAD DICTIONARY / SYSTEM RELOAD MODEL neighbourhood in AccessType.h, ASTSystemQuery and InterpreterSystemQuery) and finished the removal so that CI is green:

  • @Algunenano's request is done: the catboostEvaluate.cpp WithContext exception and the libcatboostmodel.so_* large-file entries are gone from ci/jobs/scripts/check_style/various_checks.sh.
  • Style check cpp failure (Found orphan header files): removed the now unused src/Common/ExternalModelInfo.h.
  • Fast test failures: updated 01271_show_privileges.reference (the SYSTEM RELOAD MODEL privilege) and 04124_parser_system_query_extra (the SYSTEM RELOAD MODEL(S) section). Both pass locally.
  • BuzzHouse still generated SYSTEM RELOAD MODELS: dropped reload_models from SQLGrammar.proto (field number kept reserved), SQLProtoStr and StatementGenerator.
  • Removed catboostEvaluate from the fuzzer dictionaries and the docs for catboostEvaluate, SYSTEM RELOAD MODEL(S), system.models and the SYSTEM RELOAD MODEL privilege.

The CANNOT_LOAD_CATBOOST_MODEL / CANNOT_APPLY_CATBOOST_MODEL error codes are intentionally left in place so their numbers are not reused. The build of the clickhouse target passes locally.

Note the PR is still marked [DRAFT] in the title and its description says it requires #109999 first, so the merge decision is yours.

Comment thread src/Access/Common/AccessType.h Resolved
Comment thread src/Functions/catboostEvaluate.cpp Resolved
@mintlify

mintlify Bot commented Jul 27, 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 27, 2026, 3:03 PM

Conflicts:
- `src/Functions/catboostEvaluate.cpp`: master restricted the model path to
  `user_files`; this branch removes the function entirely, so the deletion wins.
- `docs/reference/functions/regular-functions/other-functions.mdx`: master
  updated settings links inside the `catboostEvaluate` section that this branch
  deletes; the deletion wins.
@alexey-milovidov alexey-milovidov added pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard pr-backward-incompatible Pull request with backwards incompatible changes and removed pr-not-for-changelog This PR should not be mentioned in the changelog labels Jul 28, 2026
The `Docs check (Mintlify)` `Check redirects` job resolves every destination in
`docs/_site/redirects.json`, and `/reference/system-tables/models` no longer
exists. Also drop the stale commented-out `RELOAD_MODEL` entry in `QueryFuzzer`.
@alexey-milovidov

Copy link
Copy Markdown
Member

Merged master again (the branch was 384 commits behind) and fixed the remaining CI reds:

  • Merge conflicts: master restricted the catboostEvaluate model path to user_files (src/Functions/catboostEvaluate.cpp) and updated the settings links inside the catboostEvaluate docs section; both sides were resolved in favour of the removal.
  • Docs check (Mintlify) / Check redirects: docs/_site/redirects.json still redirected /operations/system-tables/models to the deleted /reference/system-tables/models page, so the destination did not resolve. The entry is removed.
  • Docs check (Mintlify) / No direct edits to generated or read-only docs: the removal of the SYSTEM RELOAD MODEL privilege legitimately changes the autogenerated regions of system-tables/grants and system-tables/privileges and deletes system-tables/models, so the pull request now carries the pr-autogenerated-docs label, which is the documented escape hatch for intentional generated-docs updates.
  • Following the AI review metadata finding: the changelog category is now Backward Incompatible Change (label switched from pr-not-for-changelog to pr-backward-incompatible) with a changelog entry that names the removed surfaces and says that SYSTEM RELOAD MODEL must be revoked before the upgrade. Both AI review blockers are answered in their threads - they describe the intended effect of the pull request.
  • Also dropped a stale commented-out RELOAD_MODEL entry in QueryFuzzer.

Remaining reds are unrelated:

Every translation unit compiles locally; only the final link step of programs/clickhouse was killed by memory pressure from concurrent builds on this machine, which is unrelated to the change.

The pull request is still marked [DRAFT] in the title and requires #109999 first, so the merge decision is yours.

alexey-milovidov and others added 3 commits July 31, 2026 05:50
# Conflicts:
#	src/BridgeHelper/IBridgeHelper.cpp
#	tests/fuzz/all.dict
#	tests/fuzz/dictionaries/functions.dict
After the `library` dictionary source removal on master (#106190), the only
remaining user of `clickhouse-library-bridge` was `catboostEvaluate`, which
this PR removes. Delete the dead `LibraryBridgeHelper`, the
`getLibrariesSandboxPath` hook of `IBridgeHelper` (no override returns a
path anymore), the unused `LIBRARY_BRIDGE_PROTOCOL_VERSION` constant, and
the `04649_library_bridge_requires_catboost_lib_path` test whose subject
(`system.models`) no longer exists.

Co-Authored-By: Claude Fable 5 <[email protected]>
Master added JSON serialization for `ASTSystemQuery` referencing the
`target_model` field that this PR removes together with the
`SYSTEM RELOAD MODEL(S)` queries.

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexey-milovidov
alexey-milovidov requested a review from a team as a code owner July 31, 2026 06:03
@alexey-milovidov

Copy link
Copy Markdown
Member

Merged master again (the branch was ~1900 commits behind) and continued the removal:

  • Merge conflicts: src/BridgeHelper/IBridgeHelper.cpp (master's Remove library dictionary source #106190 removed the library dictionary source and introduced the getLibrariesSandboxPath hook — master's structure wins) and the fuzzer dictionaries tests/fuzz/all.dict / tests/fuzz/dictionaries/functions.dict, which master deleted entirely (deletion wins).
  • Since Remove library dictionary source #106190 made catboostEvaluate the last user of clickhouse-library-bridge, this PR now also removes the dead client-side remnants: LibraryBridgeHelper, the getLibrariesSandboxPath hook of IBridgeHelper, the unused LIBRARY_BRIDGE_PROTOCOL_VERSION constant, and the 04649_library_bridge_requires_catboost_lib_path test whose subject (system.models) no longer exists. XDBCBridgeHelper is unaffected.
  • Master's new ASTSystemQuery JSON serialization referenced the removed target_model field — removed those lines.

The full clickhouse-bundle target builds cleanly after the merge. The remaining red, Stress test (amd_asan_ubsan), is an unrelated UBSan signed-integer overflow in toStartOfInterval from the AST fuzzer — tracked in #112184 with the fix in #112045.

The historical guide URLs `/guides/apply_catboost_model` and
`/guides/developer/apply-catboost-model` still redirected to
`other-functions`, which no longer documents `catboostEvaluate` after
this removal. Point them at the machine learning functions page
instead, which lists the in-product alternatives.
@@ -374,12 +368,6 @@ bool ParserSystemQuery::parseImpl(IParser::Pos & pos, ASTPtr & node, Expected &
return false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the parser arm here is not enough on its own: registerStatementSystem() in the same file still registers the full SYSTEM RELOAD MODEL(S) section in StatementFactory, and system.statements / system.documentation render directly from that registry (src/Storages/System/StorageSystemStatements.cpp). After merge those introspection surfaces will still advertise SYSTEM RELOAD MODEL(S) even though the parser now rejects it. Please delete the matching block from the embedded SYSTEM statement docs in this PR too.

@rschu1ze
rschu1ze added this pull request to the merge queue Aug 26, 2026
Merged via the queue into master with commit 034a03a Aug 26, 2026
178 checks passed
@rschu1ze
rschu1ze deleted the remove-catboost branch August 26, 2026 14:36
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 26, 2026
pull Bot pushed a commit to Mattlk13/ClickHouse that referenced this pull request Aug 26, 2026
…atboost"

This reverts commit 034a03a, reversing
changes made to 569436c.
alexey-milovidov added a commit that referenced this pull request Aug 26, 2026
…ilures

This pull request deletes `src/Functions/catboostEvaluate.cpp` together with the embedded
`FunctionDocumentation` example for `catboostEvaluate`, so `Function/catboostEvaluate#0` is no
longer present in `system.documentation`. `tests/docs_examples/runner.py` fails the `Docs examples`
job when a known-failure entry names an example that no longer exists, so the entry has to go with
the example.

Leaving it behind is what broke `master` after #109710 was merged, and what made the
`Revert CI regressions` job revert it in #116566:

  1 known failure(s) no longer exist and must be removed:
    Function/catboostEvaluate#0

Reports:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=90edfe01752e45dedc52a62cdffd1495054200cf&name_0=MasterCI&name_1=Docs%20examples&name_1=Docs%20examples
https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=e8436611efd08dbe476653e57297e2c2a6508531&name_0=MasterCI&name_1=Docs%20examples&name_1=Docs%20examples
https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=d6dba139ded74301d173f1eb9b9777eb7648c2df&name_0=MasterCI&name_1=Docs%20examples&name_1=Docs%20examples
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Aug 27, 2026
The `Docs examples` check failed on 7fc4d43 because GitHub's refs/pull/116300/merge
was still computed against master f0a219f (2026-08-26 16:36Z). There
`catboostEvaluate` was already removed by ClickHouse#109710 while its entry in
tests/docs_examples/known_failures.txt remained, so the job reported a stale
known failure. ClickHouse#116566 reverted the removal at 20:09Z; merging master makes the
entry and the example consistent in this branch's own history.
pull Bot pushed a commit to erickirt/ClickHouse that referenced this pull request Aug 29, 2026
`gh` rejects `--delete-branch` outright whenever the base branch has a
merge queue enabled -- "Cannot use `-d` or `--delete-branch` when merge
queue enabled" -- and it rejects it even next to `--admin`, the flag that
bypasses that very queue, because the check reads the branch setting and
not what the merge is about to do.

`GH.merge_pr` asked for both, so every administrator merge against
`master` failed on argument validation before it reached GitHub. The
revert of ClickHouse#109710 was investigated, reverted, pushed and opened as
ClickHouse#116566, and then left sitting open: `master` stayed broken until
somebody merged the revert by hand, and the draft that reintroduces the
change was never opened, because it is only opened once the revert has
merged.

An `admin` merge no longer asks `gh` to delete the branch. Nothing is
lost: that merge is immediate rather than queued, and GitHub removes the
head branch on its own wherever the repository has
`delete_branch_on_merge` set. The queued path is untouched -- there `gh`
accepts the flag and waits for the merge to happen.

Failing run: https://github.com/ClickHouse/ClickHouse/actions/runs/32996833639
Related: ClickHouse#116566
alexey-milovidov added a commit that referenced this pull request Sep 13, 2026
Edited by hand following .claude/skills/edit-changelog/SKILL.md, consolidating
the nine raw blocks generated between 2026-09-06 and 2026-09-13. The
NightlyChangelog job rejected its own edits every night in that period: the
verifier did not know that #116566 (reverted by #116586) had itself reverted
#109710, so it demanded that no trace of #116586 remain while the rules put
its link on the CatBoost entry. Fixed in the job by
#119866; this edit passes the
patched verifier, and the trailers below give the ledger the missing chain.

Failed runs: https://github.com/ClickHouse/ClickHouse/actions/runs/34006912773
through https://github.com/ClickHouse/ClickHouse/actions/runs/34668133756

Changelog-revert: 116566 109710 Revert "Remove CatBoost integration"
Changelog-revert: 116586 116566 Revert "Revert "Remove CatBoost integration""
Changelog-revert: 117629 117295 Revert "Skip Darwin fast test in PRs unless labeled ci-macos"
Changelog-revert: 118525 118218 Revert "Do not wait for the remote drain when cancelling a remote query"
Changelog-revert: 119043 117866 Revert "Add `ci-coverage` label to force LLVM coverage jobs on tests-only PRs"
Changelog-revert: 119269 118239 Revert "Require agents to run the style check locally before pushing"
Changelog-revert: 119270 115343 Revert "Resume a NATS JetStream subscription after a reconnect"
Changelog-revert: 119274 118919 Revert "Carry the mutation version onto a rewritten lightweight `DELETE`"
Changelog-revert: 119275 114817 Revert "Convert OUTER join to INNER join by null-rejecting join conditions"
Changelog-revert: 119276 110939 Revert "Support real hard links for plain_rewritable metadata."
Changelog-revert: 119279 117449 Revert "Print file offsets in the bare fatal stack traces and build the release binary as PIE"
Changelog-revert: 119281 116629 Revert "Check access rights in the TimeSeries table functions"
Changelog-revert: 119298 118606 Revert "Proper partition pruning with dates"
Changelog-revert: 119323 117768 Revert "Docs: Skip private sync for documentation-only pull requests"
Changelog-revert: 119334 117356 Revert "Unify the spill trigger for hash joins"
Changelog-revert: 119429 114562 Revert "Fix NO_SUCH_COLUMN_IN_TABLE naming a column absent from the table when a part's columns were all renamed or all dropped"
Changelog-deleted-entry: 110939 [New Feature] [raw] * Disks with the `plain_rewritable` metadata (`s3_plain_rewritable`, and `azure`/`local` object storages with `metadata_type = plain_rewritable`) support hard links if configured with the new `enable_hard_links` setting, which enables `ALTER` operations and mutations on `MergeTree` tables stored on them. Mutations and partition operations share the unchanged blobs between parts instead of copying them. The setting is off by default, because a disk that has hard links cannot be read by older servers. [#110939](#110939) ([yanglongwei](https://github.com/ylw510)).
Changelog-deleted-entry: 114562 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * Fixed `NO_SUCH_COLUMN_IN_TABLE` naming a column that is not in the table, when reading or merging a part whose columns had all been renamed or all dropped by a mutation that was not applied yet. The merge kept being retried, so the table stopped compacting. Also fixed the columns of a `MergeTree` part produced by such a merge reading as their default values until the mutation was applied. [#114562](#114562) ([Shaohua Wang](https://github.com/tiandiwonder)).
Changelog-deleted-entry: 114817 [Performance Improvement] [raw] * Convert `OUTER JOIN` to `INNER JOIN` when a later JOIN condition filters out its NULL-extended rows, and filter NULL join keys directly at the table scan when column statistics show it is selective. Only conditions of the form `expr1` OP `expr2` are considered, where OP is one of `=`, `<`, `<=`, `>`, `>=`. Each side can be a column or an expression that propagates NULLs. Controlled by the new settings `query_plan_derive_not_null_filters_from_joins` (enabled by default), `query_plan_allow_derived_not_null_filters_execution` (enabled by default) and `query_plan_max_selectivity_for_not_null_filters_execution` (0.7 by default). [#114817](#114817) ([Hechem Selmi](https://github.com/m-selmi)).
Changelog-deleted-entry: 115343 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * Fixed a `NATS` engine table reading from a JetStream stream (`nats_stream`) silently stopping to consume messages after the NATS server restarted or the connection was re-established. [#115343](#115343) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
Changelog-deleted-entry: 116629 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * The table functions reading a `TimeSeries` table (`timeSeriesSamples`, `timeSeriesTags`, `timeSeriesMetrics`, `timeSeriesSelector`, `prometheusQuery`, `prometheusQueryRange`) checked no privilege on it: a user holding only `CREATE TEMPORARY TABLE` could read its target tables' column definitions and rows, and write into them. Each now requires the corresponding privilege on the `TimeSeries` table and on the target table, following an `Alias` target through to the table it points at. `timeSeriesSamples`, `timeSeriesTags` and `timeSeriesMetrics` check the target at table level, since they return it whole and cannot restrict the columns, so a column-scoped grant on the target is not enough; the other three run ordinary target queries, which the planner still checks per column. An external target is authorized before it is looked up, so its existence is not disclosed either. A read fails with `ACCESS_DENIED` when the user's effective `SELECT` row-policy filter on the `TimeSeries` table is not always true, since such a policy cannot be enforced on the target's rows, and the three target functions can no longer back a `CREATE TABLE ... AS` (`BAD_ARGUMENTS`). PromQL over the Prometheus HTTP and remote-read endpoints reaches `timeSeriesSelector` whenever it selects series, so those requests now need these privileges for the user the endpoint authenticated. [#116629](#116629) ([Groene AI](https://github.com/groeneai)).
Changelog-deleted-entry: 117356 [Backward Incompatible Change] [raw] * `max_bytes_before_external_join` and `max_bytes_ratio_before_external_join` are now the spill threshold for every hash-based `join_algorithm`, including `grace_hash`, which previously ignored them and spilled on `max_rows_in_join` / `max_bytes_in_join` instead. Those two are a hard cap again for every algorithm: they no longer cause spilling, and a join that spills no longer exceeds them. All join algorithms remain available; `join_algorithm = 'grace_hash'` now needs a non-zero spill threshold, and is skipped in favour of the next algorithm in the list when it has none. Set `legacy_join_size_limits_trigger_spilling = 1` (or `compatibility` to 26.8 or older) to restore the previous behavior. [#117356](#117356) ([Yarik Briukhovetskyi](https://github.com/yariks5s)).
Changelog-deleted-entry: 117449 [Build/Testing/Packaging Improvement] [raw] * ClickHouse is now built as a position independent executable on Linux amd64 and aarch64 with glibc, including the release builds, so the text segment is subject to ASLR. Addresses in the bare stack trace of a fatal log are now file offsets relative to the object that contains them, annotated with that object for frames outside the main executable, so they can be resolved with `addr2line -e <object> <hex>` regardless of where the binary was loaded. For the same reason `system.errors.last_error_trace`, `system.error_log.last_error_trace` and `system.crash_log.trace` now store a frame of the main executable as its file offset, keeping runtime addresses for frames in other objects. [#117449](#117449) ([Groene AI](https://github.com/groeneai)).
Changelog-deleted-entry: 117768 [NOT FOR CHANGELOG / INSIGNIFICANT] [raw] * Not applicable. [#117768](#117768) ([Dominic Tran](https://github.com/dhtclk)).
Changelog-deleted-entry: 118218 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * Fixed cancelling a distributed, `s3Cluster` or parallel-replicas `SELECT` taking up to `receive_timeout` (300 s by default) to take effect, and never reaching some of the remote sources, when one of them was draining the packets left over after a `LIMIT` was satisfied. [#118218](#118218) ([Groene AI](https://github.com/groeneai)).
Changelog-deleted-entry: 118239 [NOT FOR CHANGELOG / INSIGNIFICANT] [raw] * Require agents to run the style check locally before pushing. [#118239](#118239) ([Nikita Fomichev](https://github.com/fm4v)).
Changelog-deleted-entry: 118606 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * Proper partition pruning with dates. Closes [#103433](#103433). [#118606](#118606) ([Konstantin Vedernikov](https://github.com/scanhex12)).
Changelog-deleted-entry: 118919 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * Fixed a pending lightweight `DELETE` read with `apply_mutations_on_fly = 1` evaluating its predicate over patch parts created after it, which made rows disappear from the result and reappear after the mutation materialized. [#118919](#118919) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
alexey-milovidov added a commit to groeneai/ClickHouse that referenced this pull request Sep 19, 2026
The verifier of the `NightlyChangelog` job bound a revert only to the pull
requests its own metadata names, and learned about earlier reverts solely
from the ledger trailers of previous edit commits. A revert of a revert
whose first half predates the ledger, or was consumed on a day the ledger
did not record it, was therefore read as a plain revert of a pull request
without an entry, and the verifier demanded that no trace of it remain -
while the editing rules (skill section 2.5) put its link on the entry it
brought back. Every edit attempt failed on that contradiction.

That is what wedged the 26.9 changelog from 2026-09-06 to 2026-09-13:
`ClickHouse#116586` reverts `ClickHouse#116566`, which reverted `ClickHouse#109710` (the CatBoost removal)
on 2026-08-26, one day before the ledger existed. Nine raw blocks piled up
in ClickHouse#116237 unedited.

`resolve_revert_targets` now follows the chain: a target that neither the
raw blocks nor the ledger know is looked up on GitHub, and if it is a
revert itself, so is its target, until the chain ends. The discovered
relations go into the ledger like any other. The `Reverts` marker is also
accepted in its link spelling (`Reverts https://github.com/owner/repo/pull/N`),
which hand-written reverts use.

The skill gets the two gaps the same incident showed on the agent's side:
the input can hold several raw blocks from several nights and is edited as
one, and a bullet whose text is `<!-- CI automatic block start :ci_links: -->`
is usually an automatic revert that has to be opened.

Failed runs: https://github.com/ClickHouse/ClickHouse/actions/runs/34006912773
through https://github.com/ClickHouse/ClickHouse/actions/runs/34668133756

Co-Authored-By: Claude Fable 5.1 <[email protected]>
rschu1ze added a commit that referenced this pull request Oct 4, 2026
Similar to `MAKE_OBSOLETE` for settings, an access type in `APPLY_FOR_ACCESS_TYPES`
can now be declared with `MAKE_OBSOLETE_ACCESS_TYPE`. It passes `true` as an optional
trailing argument of the macro `M`, which the consumers read with
`ACCESS_TYPE_IS_OBSOLETE`. The new function `isObsolete` returns the flag for an
`AccessType`. `SYSTEM_RELOAD_MODEL`, which is kept only for compatibility since the
removal of the CatBoost integration, is the first obsolete access type.

The flag is exposed as a new column `is_obsolete` in `system.privileges` and
`system.grants`, so that administrators can find grants of obsolete privileges.

Related: #109710

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold Skip for auto-updating. pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard pr-backward-incompatible Pull request with backwards incompatible changes pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants