Repository navigation
Revert "Avoid building stream names and substreams cache keys for every block in MergeTreeReaderWide" - #127836
Conversation
This reverts commit 46a479e, reversing changes made to 1e6f88e. The conflicts with the later changes of #127000 to the same code (the cache-key rendering of the SHARED paths of JSON and the sub-column sizes in getAllColumnsSubstreams) are resolved by keeping their behaviour over the pre-#124816 mechanics: stream names built per call and string keys of the substreams caches. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Workflow [PR], commit [481fa5b] Summary: ✅
AI ReviewSummaryThe PR manually reverts #124816, restoring per-call stream-name construction, string substream-cache keys, and per-read cache clearing in Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; normal CI completion remains necessary before merging. LLVM Coverage ReportMeasured on commit 481fa5b.
Changed lines: Changed C/C++ lines covered: 181/192 (94.27%) · Uncovered code |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes76 object files changed (-23.94 KiB total), 0 added.
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units3242 translation units recompiled, 17892 s compile time in total, 3241 of them have a recent master baseline. Translation units without a recent master baseline:
|
Backport #127836 to 26.10: Revert "Avoid building stream names and substreams cache keys for every block in MergeTreeReaderWide"
…bstreams cache keys for every block in MergeTreeReaderWide"
Reverts #124816, see #124816 (comment): the memo of stream names in
MergeTreeReaderWidecopies intoSubstreamKeythe fields ofISerialization::Substreamthat a stream name depends on today, an invariant between the serializations and the MergeTree reader that nothing checks and that the next name-bearing field would break silently, and the optimization pays off only withmax_block_sizeof about 16 or below.The revert is not automatic because #127000 changed the same code since: the rendering of the cache keys of
SHAREDpaths of JSON and the sub-column sizes ingetAllColumnsSubstreams. Their behaviour is kept over the pre-#124816 mechanics: stream names are built per call again and the substreams caches are keyed by strings again. The performance testmerge_tree_small_blocksadded by #124816 goes with it.Related: #124816
Related: #127000
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/127836]
Version info
26.11.1.1219-master(included in26.11and later)