Repository navigation
Remove unused memory accounting from text index granules - #119927
Conversation
`MergeTreeIndexGranuleText::memoryUsageBytes` and `MergeTreeIndexGranuleTextWritable::memoryUsageBytes` were never called, so they now throw `NOT_IMPLEMENTED`. The helper methods that existed only to serve them are removed as well: `TextIndexAnalyzer::memoryUsageBytes` with the `estimateAbslFlatContainerBytes` helper, and `PositionListBuilder::allocatedBytes`. `DictionarySparseIndex::memoryUsageBytes` is kept because it is the weight function of `TextIndexHeaderCache`. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Workflow [PR], commit [24cf7fd] Summary: ✅
AI ReviewSummaryThis PR removes dead text-index granule memory-accounting code: the two Final Verdict✅ Approve LLVM Coverage ReportMeasured on commit 24cf7fd.
Changed lines: Changed C/C++ lines covered: 2/8 (25.00%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units29 translation units recompiled, 270 s compile time in total, 29 of them have a recent master baseline. Median compile-time ratio to the baselines is ×0.93 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
Resolves conflicts with the `pfor` posting list codec from ClickHouse#118123: - `SegmentedPostingListCodecBase` keeps master's class hierarchy and takes over `getSegmentSize`, `createEncoder` and the `decode` overloads bounded by the token metadata; `createEncoder` uses the codec's own type, so `pfor` indexes are built with a PFor encoder - `addDocumentsFromMap` from master takes the `PostingListBuildContext` - the memory accounting of posting list encoders is removed together with the granule memory accounting removed in ClickHouse#119927 Co-Authored-By: Claude Fable 5.1 <[email protected]>
MergeTreeIndexGranuleText::memoryUsageBytesandMergeTreeIndexGranuleTextWritable::memoryUsageByteswere never called anywhere, so they now throwNOT_IMPLEMENTED. The helper methods that existed only to serve them are removed as well.Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/119927]
Version info
26.9.1.1480(included in26.9and later)