Repository navigation
Apply -WithMemoryTracking containers to the rest of src/Processors/QueryPlan - #130369
Conversation
…imizations` The changes that are local to these files; the rest of `QueryPlan` is in #129617. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
|
Workflow [PR], commit [4577138] Summary: ✅
AI ReviewSummaryPR #130369, reviewed at Final Verdict✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units509 translation units recompiled, 5336 s compile time in total, 509 of them have a recent master baseline. |
…y_plan Master moved the `ActionsDAG` traversals to `ActionsDAGTraversal.h`; the conflicts in `ActionsDAG.cpp`, `FilterStep.cpp`, `actionsDAGUtils.cpp` and `filterPushDown.cpp` take master's code with the tracked containers it still declares. The other conflicts are in `IQueryPlanStep.cpp` includes, `ReadFromMergeTree.h` and `optimizeUseAggregateProjection.cpp`. Also converted the containers master added in `RelationEstimateInfo.h`, `JoinStepLogical.cpp`, `ReadFromMergeTree.cpp`, `Cascades/Properties.cpp` and `lowerArrayJoinFunction.cpp`, and the `getCompilableDAG` declaration master added to `JIT/CompileDAG.h`. The new `Cascades` window rule follows `Rule.h`, which is converted in #130369. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
…y_plan_optimizations
…y_plan_optimizations Also used `VectorWithMemoryTracking` in the new `Cascades` rule `WindowImplementation`, whose `applyImpl` overrides the one in `Rule.h`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
#129617 is merged, so the whole directory now uses the containers with memory tracking. Also convert the containers master added since then. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
-WithMemoryTracking containers to src/Processors/QueryPlan/Optimizations-WithMemoryTracking containers to the rest of src/Processors/QueryPlan
…xpressionPtr>` Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
…ams::TopKParams` Drops the four `STYLE_CHECK_ALLOW_STD_CONTAINERS` exemptions in `optimizeGroupByTopK.cpp` that existed only because of this type. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
Resolve conflicts: `Planner.cpp` code moved to `PlannerSteps.cpp` (reapply `VectorWithMemoryTracking` for the `TopKParams` directions); `[[nodiscard]]` on the `Cascades::Optimizer` rule getters. Convert the new std containers in `optimizeReadInOrder.cpp` and `applyParallelReplicas.cpp`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
…zations' into wmt_processors_query_plan_optimizations
…y_plan_optimizations
…capture code Master added `Profiling/Capture` and changed the analysis snapshot with `std::` containers, which the style check flags in `src/Processors/QueryPlan`. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=130369&sha=f12fced7f67ec775d5cac7047cd7f0b30aef31a7&name_0=PR&name_1=Style%20check #130369 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
…y_plan_optimizations # Conflicts: # src/Processors/QueryPlan/Optimizations/Cascades/Rules/AggregationImplementations.cpp
The rule in `gtest_cascades_best_implementation.cpp` added by master overrode `applyImpl` with a `std::vector` return type. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=130369&sha=d39603c8b5c12f21e3a1d598ec095aa8159aaee7&name_0=PR&name_1=Build%20%28arm_tidy%2C%202%2F4%29 #130369 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
…y_plan_optimizations
…cessors/QueryPlan` `hasUnboundedSource` and `findPKRangesForFinalAfterSkipIndex` came from master and failed the std-container lint on the merge commit. `DenseBitsetRuntimeFilter::words` is a plain vector on purpose (it must not be refused at the memory limit), so it is marked with `STYLE_CHECK_ALLOW_STD_CONTAINERS` instead. PR: #130369 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
AI review of a later commit does not approve the PR, see the AI Review comment.
`src/Processors/QueryPlan` is linted for std containers since #130369, and `CapturedPlan::nodes` and `sub_plans` already use `VectorWithMemoryTracking` there. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DFFRj3kqWUsA1C3A8DapeT
#130369 switched the containers of `CapturedPlan` to `VectorWithMemoryTracking`. The conflict kept the `CapturedPlan::collected` field and took master's `VectorWithMemoryTracking<CapturedStep> nodes`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/130369]
Version info
26.11.1.2861-master(included in26.11and later)