Repository navigation
Add test: Absent-column skip for a part ahead of a MergeTree table is untested - #120817
Conversation
Pre-PR validation: 6/6 ✅a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
Workflow [PR], commit [d5f312b] Summary: ✅ AI ReviewSummaryAdds a regression test for mutating a Compact part whose metadata version is ahead of a non-replicated Final VerdictStatus: ✅ Approve |
|
CI check This PR is test-only; the bot will not retrigger CI or modify the test to chase a failure that appears unrelated. If you believe a failure is related to this test, please comment with details and the bot will re-evaluate. |
…es, filter by `currentDatabase` The test works on a private `clickhouse-local` directory, so locate the `metadata_version.txt` files with `find` inside it instead of fetching the paths from `system.parts`/`system.detached_parts`, which the style check treats as server data manipulation. Also add `database = currentDatabase()` to the queries to system tables. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`clickhouse-local` may leave outdated parts on disk, so finding every non-detached `metadata_version.txt` matched more than one file. Take the active part name from `system.parts` and find its file by name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🕵 The |
Test-only PR. Review: are the gaps real, is the test right.
Adds test coverage for 1 untested code path, found during automated review of PR #119354.
That PR: (1)
splitAndModifyMutationCommands(MutateTask.cpp:565-574): when a Compact part carries a column the table does not have and the storage does not support replication, the column is now skipped instead of turned into aREAD_COLUMNcommand, so the mutation rewrites the part without it. (2) …1. Absent-column skip for a part ahead of a
MergeTreetable is untestedsrc/Storages/MergeTree/MutateTask.cpp:559,src/Storages/MergeTree/MutateTask.cpp:571Risk:
MutateTask::prepare->MutationHelpers::splitAndModifyMutationCommands(confirmed call edge,MutateTask.cpp:4112). For a Compact part, every part column the mutation does not touch becomes aREAD_COLUMNcommand; a column absent from the table is first tested againstpart_metadata_version … **Unique vs PR tests:** The PR's05202builds the equal-version case (part and table both at metadata version 0), which on current master returns atMutateTask.cpp:555` - verified from the server log message, which prints both versions. This test is the only one that makes the part's version ahead of the table's, …cc @alexey-milovidov (author of #119354) — could you take a look, and add the
can be testedlabel if this looks good?Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Workflow [PR]
Sync PR [sync-upstream/pr/120817]
Version info
26.11.1.823-master(included in26.11and later)