Repository navigation
Fix NOT_FOUND_COLUMN_IN_BLOCK on a vertical merge of a table with a move or recompression TTL - #121536
Conversation
A vertical merge runs the TTL step over the merged block, and that step builds a `TTLUpdateInfoAlgorithm` for every move and recompression TTL. Only the rows and rows-`WHERE` TTL expression columns were placed into the merged stream, so a move or recompression TTL over any other column was missing from the block: `OPTIMIZE ... FINAL` threw `NOT_FOUND_COLUMN_IN_BLOCK` and the parts never merged, leaving their expired rows in place. Place the expression columns of every TTL the step evaluates. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Workflow [PR], commit [fae2364] Summary: ❌
AI ReviewSummaryThis PR fixes the vertical rows-TTL merge path so that the post-merge Final Verdict✅ No blocking issues found. LLVM Coverage ReportMeasured on commit fae2364.
Changed lines: Changed C/C++ lines covered: 11/11 (100.00%) · Uncovered code |
Build profile diff (arm_release)Commit See the job log for details. |
There was a problem hiding this comment.
The change is LGTM, let's fix a test
BTW I've noticed that TTLStep still adds TTLDeleteTransformAlgorithm which again reads the columns which are already filtered by prescending transformers , maybe it is worth to use TTLUpdateInfoAlgorithm for the columns which will be processed by TTLDeleteFilterTransform?
It moves to disk `default`, which an object-storage policy does not have, so `CREATE TABLE` fails there with `BAD_TTL_EXPRESSION`. Tag it like `01070_mutations_with_dependencies`, the other test with this construct; the bug it covers does not depend on the storage. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
sounds good.
|
True, maybe it worth a separate PR with a fix. IMHO it should have used common logic, e.g. TTLDeleteAlgorithm could pass a block to TTLUpdateInfo algorithm or just shared common structure, or should be execute one after another. |
f61f67b
Backport #121536 to 26.9: Fix NOT_FOUND_COLUMN_IN_BLOCK on a vertical merge of a table with a move or recompression TTL
Backport #121536 to 26.8: Fix NOT_FOUND_COLUMN_IN_BLOCK on a vertical merge of a table with a move or recompression TTL
Backport #121536 to 26.3: Fix NOT_FOUND_COLUMN_IN_BLOCK on a vertical merge of a table with a move or recompression TTL
Closes: #121531
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
NOT_FOUND_COLUMN_IN_BLOCKwhen merging a table that has a rowsTTLtogether with a move (TO DISK,TO VOLUME) or recompression (RECOMPRESS)TTLover a different column.Workflow [PR]
Sync PR [sync-upstream/pr/121536]
Version info
26.10.1.559-master(included in26.10and later)26.9.37.6,26.8.45.5,26.3.70.5