Skip to content

Simplified partition mutations - #48941

Closed
ilejn wants to merge 99 commits into
ClickHouse:masterfrom
ilejn:simplified_partition_mutations
Closed

ilejn wants to merge 99 commits into
ClickHouse:masterfrom
ilejn:simplified_partition_mutations

Conversation

@ilejn

@ilejn ilejn commented Apr 19, 2023 •

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

  • Improvement

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

Improved IN PARTITION mutations in MergeTree family to leave unaffected partitions intact. Especially useful for backups and for remote disks.


Note

Medium Risk
Changes how MergeTree mutations are tracked, selected, and considered during merges/cleanup by introducing per-partition mutation scoping. Risk is moderate because it touches background mutation/merge selection and mutation cleanup logic, which can affect data correctness and cluster stability if edge cases are missed.

Overview
Partition-scoped mutations: IN PARTITION mutations are now tracked with an explicit set of affected partition IDs (PartitionIds), carried through MergeTreeMutationEntry (computed on creation and on load) and checked via affectsPartition() so unaffected partitions are skipped during mutation selection, failure reporting, and on-the-fly mutation application.

Merge/cleanup behavior updated: Merge predicates now treat mutation versions as equivalent when any intervening mutations don’t apply to the partition (mutationVersionsEquivalent()), and mutation cleanup (clearOldMutations) avoids deleting entries that are still unfinished for any partition. Partition ID handling is unified across components by replacing various unordered_set/set usages with PartitionIds (flat_set) and adding new tests covering partition-scoped mutations, merges, and cleanup.

Written by Cursor Bugbot for commit f5ade70. This will update automatically on new commits. Configure here.


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

@ilejn

ilejn commented Apr 19, 2023 •

Copy link
Copy Markdown
Contributor Author

This is yet another attempt (at least 3rd) to have mutations local for partitions they affect.
Successor or PRs 41344 by @quickhouse and #21326
I've started from PR 41344 codebase and removed two states introduced by this PR, namely partition in mutation.txt and last_mutation_by_partition map.
Analyzing performance to decide if these states are useful.

@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-improvement Pull request with some product improvements label Apr 19, 2023
@tavplubix tavplubix self-assigned this Apr 24, 2023
@den-crane

den-crane commented Jun 6, 2023 •

Copy link
Copy Markdown
Contributor

Note: when you execute IN PARTITION 202306

  1. system.mutations.parts_to_do_names shows that ALL PARTS of the table will be mutated.
  2. mutation checks the sizes of ALL PARTS of the table, so if you have a part 202301_ with size 400GB and free disk space 300GB, the mutation will stuck with the message Cannot reserve 400GB, not enough space, though it needs 800GB (400*2) to unstuck, and it actually is not going to mutate 202301_ at all.

@ilejn
ilejn force-pushed the simplified_partition_mutations branch from 1043c4d to 67b259c Compare August 17, 2023 13:41
@robot-clickhouse-ci-1

robot-clickhouse-ci-1 commented Aug 17, 2023 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit a1053ab with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Check nameDescriptionStatus
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests❌ failure
Successful checks
Check nameDescriptionStatus
BuildsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here✅ success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integration tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Style checkRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success
Unit testsRuns the unit tests for different release types✅ success

Comment thread src/Storages/StorageMergeTree.cpp Resolved
@Enmk

Enmk commented Aug 21, 2023

Copy link
Copy Markdown
Contributor

Note to self (or other reviewers): the ultimate goal is to avoid changing any aspect of parts that would not be affected by a mutation, which means avoiding changing file names too.

@ilejn
ilejn force-pushed the simplified_partition_mutations branch 2 times, most recently from b407fb6 to 615b972 Compare August 24, 2023 09:18
@ilejn
ilejn force-pushed the simplified_partition_mutations branch from 5aa8dcc to 219f5ee Compare October 4, 2023 20:15
@mrodonnpaw

Copy link
Copy Markdown

Hi @ilejn ! I hope this message finds you well. I've been following the progress of this PR and I'm excited about the changes it brings. I was wondering if you could give an estimate on when we might expect these changes to be included in the stable release? Thanks!

@ilejn

ilejn commented Nov 8, 2023

Copy link
Copy Markdown
Contributor Author

Hi @ilejn ! I hope this message finds you well. I've been following the progress of this PR and I'm excited about the changes it brings. I was wondering if you could give an estimate on when we might expect these changes to be included in the stable release? Thanks!

@mrodonnpaw , it is a rather problematic thing, I cannot provide reliable estimations.

@mrodonnpaw

Copy link
Copy Markdown

Hello @ilejn! Any news about this?

@alexey-milovidov

Copy link
Copy Markdown
Member

It could probably break some invariants. Ask @tavplubix for details.

@tavplubix

Copy link
Copy Markdown
Member

Yes, we discussed it with @filimonov and, afair, we found a solution, but it was a long time ago and I forgot the context

@ilejn
ilejn force-pushed the simplified_partition_mutations branch 4 times, most recently from edfe9c8 to 7721f15 Compare June 6, 2024 06:52
@ilejn
ilejn force-pushed the simplified_partition_mutations branch from 77745cf to d4703ff Compare June 12, 2024 10:10
@ilejn

ilejn commented Jun 13, 2024

Copy link
Copy Markdown
Contributor Author

Yes, we discussed it with @filimonov and, afair, we found a solution, but it was a long time ago and I forgot the context

Hello @tavplubix ,
I'll try to implement it despite concerns, some of them are obvious and valid, some others probably not.
I appreciate your comments and suggestions.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @alesapin, revisiting your concern: this branch still relies on mutationVersionsEquivalent rather than moving ordinary MergeTree to per-partition block numbers. The unresolved legacy-entry cases documented in the review threads make the compatibility surface clear, but choosing the broader block-number model is an architectural decision beyond a mechanical fix. I have left those threads open for maintainer direction rather than changing the model speculatively.

The test added in the previous commit timed out in `Fast test`
(https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=48941&sha=7b425e7b69c94f990b483995c89089cb72375b23&name_0=PR&name_1=Fast%20test),
and its reference file contained a literal `\t` instead of a tab.

Two hangs:
- `ALTER TABLE ... CLEAR COLUMN ... IN PARTITION` goes through
  `StorageReplicatedMergeTree::alter`, which waits for the created mutation
  with `alter_sync` (default `1`). With `SYSTEM STOP MERGES` in effect the
  mutation can never finish, so the statement waited forever. Issue it with
  `alter_sync = 0`.
- `ALTER TABLE ... MODIFY COLUMN p Int8 SETTINGS alter_sync = 2` could not
  complete either: the replication queue postpones the `ALTER_METADATA` entry
  with "Cannot execute alter metadata ... because another alter 1 must be
  executed before", and the data mutation of that previous alter (the pending
  `CLEAR COLUMN`) is blocked by the stopped merges. A `CLEAR COLUMN` therefore
  cannot be kept pending across a partition key type change at all, so the test
  no longer tries to; executing a pending entry across such a change is already
  covered by `04702` and `04847`.

What is left is exactly what the source change does: the entry created by
`StorageReplicatedMergeTree::alter` is scoped with `IN PARTITION ID`, which the
test now asserts both in `system.mutations` and in the raw `/mutations` znode,
before letting the mutation execute and checking the data.

Also added the tags required by the fixture (`zookeeper`,
`no-replicated-database`, `no-shared-merge-tree`, `no-shared-catalog`): the
`SYSTEM STOP MERGES` must hold on the only replica that could execute the
mutation, and the znode path is inspected directly.
@clickhouse-gh

clickhouse-gh Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing commit ffe59a5e0cf8d2c6f77449b2bcaee76ec0e63c43 with master failed: RuntimeError: CI logs cluster query failed: SELECT count() AS c FROM binary_sizes W….

See the job log for details.

…n_mutations

Resolved against the mutation partition-pruning feature that landed on master:

- `MergeTreeData::getPartitionIdsAffectedByCommands` now comes from master
  (predicate pruning, multi-partition `IN PARTITION p1, p2`, the
  `analyzed_partition_ids` contract), together with
  `getPartitionIdsPrunedByPredicate`. The version of this branch is dropped, and
  `StorageReplicatedMergeTree::allocateBlockNumbersInAffectedPartitions` keeps
  master's implementation, which already locks only the affected partitions and
  no longer needs the filtering this branch added.
- `resolvePartitionIdsForCommands` (this branch) is kept for the non-replicated
  per-command scope. A command listing several partitions cannot be pinned to a
  single `resolved_partition_id`, so it makes the mutation global; it is still
  executed only in its partitions through the `_partition_id IN (...)` predicate
  built by `getPartitionAndPredicateExpressionForMutationCommand`.
- The per-partition completion check of this branch moved into master's new
  `StorageMergeTree::markFinishedMutations`, so `finish_time` stamping is
  preserved: the global minimum part data version cannot bound the finished
  mutations when a mutation is scoped to a subset of partitions, so every entry
  is checked against the parts of the partitions it affects (helpers
  `getSortedPartVersions` and `hasPartsToMutate`, shared with
  `getUnfinishedMutationCommandsUnlocked`).
…nged

The persisted partition scope was stored in an extra `partition ids:` line of
`mutation_*.txt` while `format version: 1` stayed the same, and `loadMutations`
rewrote legacy files into that shape. A binary without this feature reads
`commands` and then expects `tid:`/EOF, so after such a file was written or
upgraded, downgrading made the table unloadable.

The scope is now pinned into the command text itself, exactly like on the
`ReplicatedMergeTree` path: `rewritePartitionScopeToIds` rewrites
`IN PARTITION <value>` into `IN PARTITION ID '<id>'` and returns the affected
partitions of the entry, so `resolvePartitionIdsForCommands` is gone and the
file keeps the shape it always had. A partition id is decoded without the
partition key, so re-parsing the file after a key-safe partition key type change
still works, and the upgraded file remains readable by an older binary.

`MergeTreeMutationEntry` therefore no longer writes or parses the extra line
(neither on disk nor in the backup entry), and it recognizes a legacy file by a
command that still carries an `IN PARTITION <value>` literal
(`MergeTreeData::hasUnresolvedPartitionScope`).

Tests `04846` and `04701` now check the pinned command text instead of the
removed line, and the `02241` reference is back to the master value: the
mutation file is no longer 20 bytes larger.
…`clang-tidy`

`Style check` failed on `server_data_manipulation_in_stateless_tests`:
`04846_legacy_partition_mutation_file_upgrade.sh` fetched the table data path
from `system.tables` and ran `sed -i` on the real `mutation_*.txt` file. The
stateless suite runs against arbitrary server configurations (object storage,
shared MergeTree, encrypted disks) where that file either does not exist or does
not mean what the test assumes, so the scenario is moved verbatim to
`test_mutations_in_partitions_of_merge_tree` as
`test_legacy_mutation_file_partition_scope_upgrade`.

`Build (arm_tidy)` failed with `modernize-loop-convert` on the iterator loop in
`StorageMergeTree::markFinishedMutations`; it is now a range-based loop over
structured bindings.
@Algunenano Algunenano removed the close in a month if not active This will be closed in case of no information label Sep 2, 2026
@abashkeev abashkeev added the comp-mutations ALTER UPDATE/DELETE and mutation execution over parts (including lightweight updates/deletes). label Sep 3, 2026
alexey-milovidov and others added 4 commits September 15, 2026 21:40
# Conflicts:
#	src/Storages/StorageMergeTree.cpp
… master

The PR changed its parameter from `MutationCommand::Type` to `const MutationCommand &` for a
`CLEAR COLUMN` distinction that is no longer made in the body, while master added two new
callers with the original signature in `StorageMergeTree::getMutationVersionForMergedPart`.
Restore the original signature (the comment is kept) instead of touching the new callers.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…, p2` carrier too

`ALTER TABLE ... UPDATE/DELETE ... IN PARTITION p1, p2 WHERE ...` stores its partitions in
`ASTAlterCommand::partitions`, which `rewritePartitionScopeToIds` ignored: such a mutation was
treated as global (so on plain `MergeTree` every unrelated part was still cloned to the new
mutation version) and its partition literals were never rewritten to `IN PARTITION ID`, so a
pending multi-partition mutation could not survive a key-safe partition key type change.

`MutationCommand::resolved_partition_id` becomes `resolved_partition_ids`, a set covering both
carriers. `rewritePartitionScopeToIds` rewrites every listed partition to its id and returns the
union for `partition_ids`; `hasUnresolvedPartitionScope` and `pinPartitionScopeOfLegacyCommands`
recognize the multi-partition carrier as well; `canSkipMutationCommandForPart`,
`isStorageTouchedByMutations` and `getPartitionAndPredicateExpressionForMutationCommand` use the
pinned set instead of decoding the literals again.

Tests: `05218_partition_mutation_multi_partition_scope` (plain `MergeTree`: the part of the
unlisted partition keeps its name, and a pending multi-partition mutation survives
`Enum8 -> Int8` across `DETACH`/`ATTACH`) and
`05219_partition_mutation_multi_partition_scope_replicated` (the `ReplicatedMergeTree` counterpart).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…tion-scoped mutations exist

New mutation entries pin their `IN PARTITION` scope as partition ids at creation, and legacy
entries (written before that) are upgraded at load where possible: a plain `MergeTree` file is
rewritten, and a single-partition `ReplicatedMergeTree` entry recovers its scope from its block
numbers. Two legacy shapes have no such path: a file on a read-only / write-once disk, and a
replicated entry spanning several partitions (its znode stores no per-command scope, so every
replica that loads it later has to decode the literals through the current partition key). After
a key-safe partition key type change (e.g. `Enum8 -> Int8`) their literals become undecodable,
which can make the table unloadable.

Enforce a fail-closed compatibility policy instead: `MergeTreeData::checkAlterIsPossible` rejects
a type change of a partition key column with `ALTER_OF_COLUMN_IS_FORBIDDEN` while such entries
exist (`getMutationsWithLegacyPartitionScope`, implemented for both engines), naming the entries
and telling the user to wait for them or `KILL MUTATION`. Entries with a recoverable scope do not
block the change (`04847` keeps passing).

Test: `05220_partition_mutation_legacy_multi_partition_znode_key_change` fabricates a legacy
multi-partition znode, checks the change is refused while the entry is pending, and accepted
again after the mutation is killed.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Status update, 2026-09-15 (head ffe59a5e0cf8):

  • Merged master (7836 commits; one conflict in StorageMergeTree.cpp, where master added getMutationVersionForMergedPart next to the partition-aware getNextMutationVersion of this PR) and restored master's AlterConversions::isSupportedMetadataMutation signature, which the PR had changed for a distinction that no longer exists.
  • AI review blocker 1 (multi-partition IN PARTITION p1, p2 carrier): fixed in 6471f2dec9c3; tests 05218 / 05219.
  • AI review blockers 2 and 3 (compatibility policy for legacy entries): enforced in ffe59a5e0cf8 - a type change of a partition key column is refused with ALTER_OF_COLUMN_IS_FORBIDDEN while a legacy partition-scoped entry whose scope cannot be recovered without the current key exists (plain MergeTree file on a non-writable disk, or a replicated entry spanning several partitions); test 05220.
  • Local run against the merged binary: the 13 partition-mutation tests of this PR pass, plus 65/68 of a broader mutation sweep (the 3 failures need system.part_log / an S3 named collection that my minimal server lacks). The integration test could not be run here because docker-in-docker failed to start containerd; CI will cover it.
  • The only red of the previous run, Stress test (arm_asan_ubsan) Logical error: Not-ready Set is passed as the second argument for function (STID 0250-4e52), is unrelated: Not-ready Set inside a running FilterTransform: the plan hands the pipeline an unbuilt IN set (STID: 0250-4e52) #118722, fixes in progress in Fix Not-ready Set logical error from an IN subquery inside a map* or arrayFold lambda #119907 and Do not constant-fold a lambda that captures an IN set which is not built yet #119938.

Comment thread src/Storages/StorageMergeTree.cpp Resolved
alexey-milovidov and others added 5 commits September 23, 2026 12:29
…n_mutations

Conflicts:
- MergeTreeMutationEntry.cpp: master replaced TransactionLog.h with TransactionManager.h; kept that plus the PR's ASTAlterQuery.h.
- test_transactions/test.py: master changed the removal TID format to include a trailing ',0'; kept the PR's expectations (no _7 parts in partition 0) with the new TID format.
`05218`: `SYSTEM STOP MERGES` does not survive `DETACH`/`ATTACH`, so the pending
`DELETE` could already be done when `system.mutations` was queried with `NOT is_done`.
Select it by its command instead.

`05219`: the block numbers in the part names depend on insert retries (Keeper fault
injection), e.g. `3_1_1_0` instead of `3_0_0_0`. Check only whether each partition's
part carries a mutation version.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=48941&sha=ffe59a5e0cf8d2c6f77449b2bcaee76ec0e63c43&name_0=PR

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
With partition-scoped mutations a later mutation of one partition can finish while an
earlier mutation of another partition is still pending. `markFinishedMutations` stopped
at the first unfinished entry, so such a mutation was never marked done, stayed in
`mutation_counters` and could never be removed by `clearOldMutations`. Keep scanning
past unfinished entries, and make `clearOldMutations` delete the oldest finished entries
instead of the first N entries of the map.

Test `05241`: a pending mutation of partition 1 no longer keeps finished later mutations of
partition 2 from being cleaned up according to `finished_mutations_to_keep`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…heck

`StorageReplicatedMergeTree::getMutationsWithLegacyPartitionScope` only consulted the
local mutation set, which is refreshed asynchronously, and `alter` does not pull it for a
`MODIFY COLUMN`. A replica with a stale view could accept a partition key type change
while a legacy multi-partition znode was already in `/mutations`. Load the new entries
from ZooKeeper first (this fails closed with `ABORTED` while log pulling is stopped).

Test `05242`: the second replica has not loaded the legacy entry, and still does not accept
the change.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… parentheses

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Status update (pushed 7b40733bd699):

  • Merged the latest master (2 conflicts: MergeTreeMutationEntry.cpp includes — TransactionLog.h became TransactionManager.h; test_transactions/test.py — kept this PR's expectations with master's new (…,0) removal TID format; the integration test passes locally).
  • Both "Minimum required actions" of the AI review are implemented, each with a focused regression that fails on the unfixed binary:
    1. The replicated legacy-scope guard refreshes /mutations first (05242).
    2. markFinishedMutations / clearOldMutations no longer assume finished mutations form a version prefix (05241).
  • The previous CI reds were this PR's own flaky tests: 05218 (SYSTEM STOP MERGES does not survive DETACH/ATTACH, so the pending DELETE could already be done) and 05219 (part names depend on block numbers, which shift on insert retries). Both fixed. The Build profile diff red was an infrastructure query failure against the CI logs cluster.

All 15 PR stateless tests pass locally 3 times each.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/PRs/48941/ffe59a5e0cf8d2c6f77449b2bcaee76ec0e63c43/pr/build_profile_diff/job.log (Build profile diff: RuntimeError: CI logs cluster query failed in has_pr_data, unrelated to this PR) and provide a fix in a separate PR. If the fix is already in progress, link it here.

@groeneai

Copy link
Copy Markdown
Collaborator

Investigated. The cited red is the pre-fix state of this class and the family fix is already merged, so there is no new PR from me for it. One residual defect I did find while checking does need one, and I will send that separately.

The cited log is from 2026-09-16 01:30, on head ffe59a5e0cf8, and its shape is the readiness leg, not a refused query. 8 x WARNING: LogCluster not ready / ERROR: No connection to LogCluster between 01:31:28 and 01:33:48, and zero POSTs ever attempted (select failed with code = 0, no exception from a POST), so the 3 s SELECT 1 probe never succeeded on any of the 8 attempts, spread over the loop's growing backoff. has_pr_data is incidental: it is just the first read the job makes, and RuntimeError: CI logs cluster query failed: <query> was Db.query's old wording, which echoed the query and never the reason.

Fix presence, gh api repos/ClickHouse/ClickHouse/compare/...:

head contains #121048 1a75e54f4c38 contains #121393 ec8aaece64c0
cited ffe59a5e0cf8 no: diverged, behind 2970 no: diverged, behind 3161
current 7b40733bd699 yes: ahead, behind 0 yes: ahead, behind 0

Fleet-wide, CIDB default.checks, check_name = 'Build profile diff', test_name = '': 2026-09-20 was 345 error / 91 success, 2026-09-22 is 8 / 397, 2026-09-23 to 15:34Z is 8 / 273. 7 of today's 8 error runs are heads that predate 1a75e54f4c38 (behind 109 to 8998) and still emit that old RuntimeError wording, so merging master clears them now, which it could not a week ago. You already did that here at 13:34Z and Build profile diff has not run yet on 7b40733bd699.

The 8th run is the one that needs a separate PR. #96662 at head 72541f0db997 contains both merged fixes (behind 0) and still went red, not through either exception path: WARNING: Job timed out: [Build profile diff], timeout [1800], exit code [-15], SIGKILLed inside select's retry loop after 18 requests.exceptions.ReadTimeouts (job log, 12:59:08 to 13:29:51). select(retries=8, timeout=60) costs up to 8 x 60 s plus 5+10+...+40 = 180 s of backoff, about 660 s per read, and the job has 16 db.query call sites, so three degraded reads exhaust the whole 1800 s job budget. The runner then kills the process before select can raise LogClusterUnavailable, which makes report_cluster_unavailable's green completion unreachable in exactly the windows it was written for.

I will send that as a separate PR: one wall-clock budget for a job's cluster reads, sized from the job timeout, so an exhausted budget raises LogClusterUnavailable and the check completes green with the reason, instead of being SIGKILLed with none.

Related: #120462 · #121048 · #121393

@groeneai

Copy link
Copy Markdown
Collaborator

The separate PR for that residual is open: #121849 (it gives this job's CI logs cluster reads one shared wall-clock budget derived from the job timeout, so a degraded cluster ends in the green report_cluster_unavailable path instead of a SIGKILL at 1800 s with no result).

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Superseded by #123506, which carries all commits of this PR with the original authorship.

The latest merge of master could not be pushed to this branch: master changed .github/workflows, and the automation's token is not allowed to update workflow files in a fork, so the work continues from a branch in the main repository. On top of this branch, the new PR merges the latest master (conflict in AlterConversions.cpp, both sides kept) and fixes the Fast test failure of the last run: getMutationsWithLegacyPartitionScope refreshed /mutations from ZooKeeper without setting a ZooKeeper component, so every partition key type change of a ReplicatedMergeTree table threw a LOGICAL_ERROR exception (Current component is empty). All review threads here had been addressed (with replies) and are resolved.

@groeneai, thanks for the investigation of the Build profile diff red and for #121849.

Thank you @ilejn for this long-running work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-mutations ALTER UPDATE/DELETE and mutation execution over parts (including lightweight updates/deletes). pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.