Repository navigation
remove readLockParts above loadStatistics - #124420
Conversation
|
Workflow [PR], commit [0449b0f] Summary: ✅
AI ReviewSummaryThis PR removes the extra Findings
Final Verdict
LLVM Coverage ReportMeasured on commit 0449b0f.
Changed lines: Changed C/C++ lines covered: 19/19 (100.00%) · Uncovered code |
| M(SetsBuiltFromSubquery, "Number of `IN`/`JOIN` sets filled by running their subquery. A set taken from the prepared sets cache, or already built and reused, is not counted.", ValueType::Number) \ | ||
| \ | ||
| M(LoadedStatisticsMicroseconds, "Elapsed time of loading statistics from parts", ValueType::Microseconds) \ | ||
| M(LoadedStatistics, "Number of data parts for which column statistics were loaded", ValueType::Number) \ |
There was a problem hiding this comment.
LoadedStatistics is now the test oracle for “how many part-statistics loads happened”, but this counter is only incremented in MergeTreeData::getConditionSelectivityEstimator and MergeTreeData::refreshStatistics. EXPLAIN WHATIF still loads per-part stats through src/Storages/MergeTree/WhatIfStatisticalEstimator.cpp:42 without touching the counter, so the new metric silently undercounts one supported statistics-planning path. Can we either move the increment into the common IMergeTreeDataPart::loadStatistics helpers, or at least narrow the event name/description to the exact path it measures?
|
📊 Cloud Performance Report ✅ AI verdict: no significant changes detected. K_source=6 K_base=30 flagged=0/65 clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|
…r-part Resolve conflicts in `MergeTreeData.cpp` with #124420: keep the per-part `StatisticsCache` and the removal of `refreshStatistics`, take master's removal of `readLockParts` around `loadStatistics` and the new `LoadedStatistics` profile event. With the cache, `LoadedStatistics` counts the parts whose statistics are collected for the estimator, from the cache or from the part, so its description and the test comments are updated accordingly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
readLockParts above loadStatistics looks unnessesary
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/124420]
Version info
26.10.1.1802-master(included in26.10and later)