Skip to content

Revert "Revert "Remove CatBoost integration"" - #116586

Merged
alexey-milovidov merged 9 commits into
masterfrom
revert-116566-revert-109710
Sep 5, 2026
Merged

alexey-milovidov merged 9 commits into
masterfrom
revert-116566-revert-109710

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Reverts #116566


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

Version info

  • Merged into: 26.9.1.809 (included in 26.9 and later)

@clickhouse-gh

clickhouse-gh Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c22cb6e]

Summary: ✅


AI Review

Summary

This PR re-applies the CatBoost removal by deleting catboostEvaluate, SYSTEM RELOAD MODEL(S), system.models, and the server-side bridge helper. Most of the earlier upgrade-compatibility fixes are now in place, but one RBAC surface is still left live: the obsolete SYSTEM RELOAD MODEL privilege remains grantable and discoverable even though the statement itself is gone, so the PR is not ready to merge.

Findings

❌ Blockers

  • [src/Access/Common/AccessType.h:359] Keeping SYSTEM_RELOAD_MODEL as an ordinary entry in APPLY_FOR_ACCESS_TYPES means the removed CatBoost surface is still exposed through live RBAC APIs. Normal GRANT ... still accepts it because ParserGrantQuery only runs the generic throwIfNotGrantable check (src/Parsers/Access/ParserGrantQuery.cpp:193-194), CHECK GRANT ... still accepts it through the same path (src/Parsers/Access/ParserCheckGrantQuery.cpp:15-23), and SHOW PRIVILEGES / system.privileges still advertise it because StorageSystemPrivileges enumerates every access type (src/Storages/System/StorageSystemPrivileges.cpp:58-67, src/Interpreters/Access/InterpreterShowPrivilegesQuery.cpp:21). The current reference output still contains SYSTEM RELOAD MODEL as a grantable privilege (tests/queries/0_stateless/01271_show_privileges.reference:163). That leaves authorization metadata claiming support for a feature this PR removes.
    Suggested fix: keep SYSTEM_RELOAD_MODEL only as a backward-compatibility parse path for stored ATTACH ... GRANT ... / config entities, but reject it from ordinary GRANT and CHECK GRANT and stop enumerating it from SHOW PRIVILEGES / system.privileges.
Tests
  • ⚠️ Add a focused regression that proves the intended split: an old ATTACH USER/ROLE ... GRANT SYSTEM RELOAD MODEL ON *.* still parses after upgrade, while ordinary GRANT SYSTEM RELOAD MODEL ..., CHECK GRANT SYSTEM RELOAD MODEL ..., and SHOW PRIVILEGES no longer expose a live CatBoost privilege.
Final Verdict

Status: ⚠️ Request changes

Minimum required actions:

  • Turn SYSTEM_RELOAD_MODEL into a compatibility-only parsing path instead of a live grantable privilege.
  • Add a focused regression test covering that behavior split.

LLVM Coverage Report

Measured on commit c22cb6e.

Metric Baseline Current Δ
Lines 88.70% 88.70% +0.00%
Functions 92.10% 92.10% +0.00%
Branches 81.00% 81.00% +0.00%

Changed lines: Changed C/C++ lines covered: 68/75 (90.67%) · 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 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
Comment thread src/Access/Common/AccessType.h Resolved
Comment thread docs/reference/statements/system.mdx Resolved
Comment thread docs/reference/statements/grant.mdx Resolved
@clickhouse-gh

clickhouse-gh Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing c22cb6ea7 with master 6113efbf0 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

23 translation units recompiled, 138 s compile time in total, 23 of them have a recent master baseline.

Job report

@mintlify

mintlify Bot commented Aug 28, 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 Aug 28, 2026, 3:17 AM

…entation source of truth

The generated `.mdx` pages are only derived output, so the removal has to
happen in `registerStatementSystem` (`ParserSystemQuery.cpp`) and
`registerStatementGrant` (`ParserGrantQuery.cpp`); otherwise
`system.statements`, `system.documentation` and the client `help` command
keep advertising a statement and a privilege that no longer exist.

Restore the edits to the `AUTOGENERATED` regions of the generated docs pages
(and the `system.models` page) - they are updated by the documentation
autogeneration workflow, and hand edits there fail the docs check.
…for upgrade compatibility

Access entities are persisted as text (`serializeAccessEntity`) and reparsed
with `ParserGrantQuery` on startup, so hard-removing the privilege keyword
would make previously stored `ATTACH ... GRANT SYSTEM RELOAD MODEL ...`
definitions unparsable: `users.xml` parsing would fail and `DiskAccessStorage`
would silently drop the affected users and roles.

Move the privilege to the `Deprecated` section of `APPLY_FOR_ACCESS_TYPES`, the
same way the obsolete source privileges are kept, so that old grants still
parse while the statement itself no longer exists.
@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 Addressed the AI review blocker as well: hard-removing SYSTEM_RELOAD_MODEL from APPLY_FOR_ACCESS_TYPES would make previously persisted ATTACH ... GRANT SYSTEM RELOAD MODEL ... definitions unparsable on upgrade (users.xml load would fail, and DiskAccessStorage would silently drop the affected users and roles). The privilege is now kept in the Deprecated section of APPLY_FOR_ACCESS_TYPES, the same way the obsolete source privileges are kept, so old grants still parse while the statement itself is gone.

Verified locally: SYSTEM RELOAD MODELS is now a syntax error, GRANT SYSTEM RELOAD MODEL ON *.* TO u1 still parses, SELECT * FROM system.documentation no longer mentions the statement, and 01271_show_privileges matches its updated reference.

Comment thread src/Access/Common/AccessType.h Resolved
Comment thread src/Core/ServerSettings.cpp Resolved
…ftover `catboost_lib_path`

Two backward-compatibility issues pointed out by the review:

- Moving `SYSTEM_RELOAD_MODEL` into the `Deprecated` tail of
  `APPLY_FOR_ACCESS_TYPES` renumbers every access type between its old slot
  and the tail. `StorageSystemPrivileges::getAccessTypeEnumValues` and
  `StorageSystemGrants` expose these ordinals directly as `Enum16` values, so
  the reorder silently changed the numeric mapping seen by `system.privileges`
  and `system.grants`. The privilege is kept in its original slot instead: old
  grants still parse after an upgrade, and no other access type is renumbered.
  `01271_show_privileges.reference` is back to its unmodified form.

- Removing `catboost_lib_path` from the top-level config allowlist turns a
  config carried over an upgrade into a startup failure, because
  `ServerSettings::checkUnknownSettings` throws `UNKNOWN_ELEMENT_IN_CONFIG`
  for unknown top-level keys. The key is kept as an obsolete, ignored entry,
  and `test_unknown_config_option` now exercises it in `existing_keys.xml`,
  which asserts that a server whose config contains such leftover keys starts
  cleanly.
M(SYSTEM_RELOAD_USERS, "RELOAD USERS", GLOBAL, SYSTEM_RELOAD) \
M(SYSTEM_RELOAD_DICTIONARY, "SYSTEM RELOAD DICTIONARIES, RELOAD DICTIONARY, RELOAD DICTIONARIES, SYSTEM UNLOAD DICTIONARY, SYSTEM UNLOAD DICTIONARIES, UNLOAD DICTIONARY, UNLOAD DICTIONARIES", GLOBAL, SYSTEM_RELOAD) \
/* The CatBoost integration is removed, but the privilege is kept in place, so that access entities granted before the removal still parse after an upgrade, and so that the numeric values of the other access types in `system.privileges` and `system.grants` do not change. */ \
M(SYSTEM_RELOAD_MODEL, "SYSTEM RELOAD MODELS, RELOAD MODEL, RELOAD MODELS", GLOBAL, SYSTEM_RELOAD) \

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.

Keeping SYSTEM_RELOAD_MODEL as a normal access type leaves the removed CatBoost surface half-alive in RBAC. ParserGrantQuery only skips throwIfNotGrantable() for ATTACH (src/Parsers/Access/ParserGrantQuery.cpp:193-194), so ordinary GRANT SYSTEM RELOAD MODEL ... and CHECK GRANT SYSTEM RELOAD MODEL ... still succeed, and StorageSystemPrivileges enumerates every APPLY_FOR_ACCESS_TYPES entry into SHOW PRIVILEGES / system.privileges (src/Storages/System/StorageSystemPrivileges.cpp:58-67, src/Storages/System/StorageSystemPrivileges.cpp:149-152).

That means after this PR users and automation can still discover and grant a privilege for a statement that no longer exists. We need a compatibility-only path here: keep parsing old access entities / users.xml grants, but reject this privilege in normal GRANT / CHECK GRANT and stop advertising it from the live privilege metadata.

@clickhouse-gh clickhouse-gh Bot added the comp-functions Built-in SQL function implementations + function infrastructure. label Sep 4, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

⚠️ AI verdict: not_sure — no significant changes across 41 queries analysed

This PR removes the CatBoost integration and its library-bridge plumbing (deleting catboostEvaluate, LibraryBridgeHelper, and related tests/config), plus keeps the SYSTEM RELOAD MODEL privilege and catboost_lib_path config as accepted no-ops for upgrade safety. None of this touches the server's query-execution hot path, so neither flagged query can plausibly be affected. ClickBench Q18's +5.4% and TPCH Q17's -31.0% are both off-path deltas — Q18 has a noisy history and Q17 ran against a baseline the gates already marked unstable — so both are downgraded to not-sure rather than treated as real. No cross-query pattern applies.

clickbench

⚠️ 1 inconclusive

Flagged queries (1 of 43)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 18 not_sure 1068 1126 +5.4% <0.0001 This PR only removes the CatBoost integration and library-bridge plumbing; ClickBench Q18 executes none of that code, so the +5.4% is run-to-run variance on a query with a noisy history.

Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on.

tpch_adapted_1_official

⚠️ 1 inconclusive

Flagged queries (1 of 22)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 17 not_sure 100 69 -31.0% <0.0001 The diff only deletes CatBoost/library-bridge code untouched by TPCH Q17, and the baseline was flagged unstable (very noisy). The -31.0% is not a real PR effect.

Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on.

Debug info
  • StressHouse run: a37e72d1-654e-439c-a083-16d17e5abee2
  • MIRAI run: b168a7a8-c693-475a-8650-461a2a391819
  • PR check IDs:
    • clickbench_1318326_1788627828
    • clickbench_1318332_1788627828
    • clickbench_1318338_1788627828
    • tpch_adapted_1_official_1318349_1788627828
    • tpch_adapted_1_official_1318361_1788627828
    • tpch_adapted_1_official_1318396_1788627828

@alexey-milovidov alexey-milovidov self-assigned this Sep 5, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 5, 2026
Merged via the queue into master with commit c8dbf93 Sep 5, 2026
175 checks passed
@alexey-milovidov
alexey-milovidov deleted the revert-116566-revert-109710 branch September 5, 2026 20:39
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 5, 2026
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]>

This branch was successfully deployed

1 active deployment
staging - docs — c22cb6ea Deployed Sep 3, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-functions Built-in SQL function implementations + function infrastructure. pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard pr-not-for-changelog This PR should not be mentioned in the changelog 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.

2 participants