planner: fix LogicalProjection.DeriveStats allocate too many memories (#63829) | tidb-test=920d9bf1b1137cda1272bdd59ae527aee8067944#64006
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
@hawkingrei This PR has conflicts, I have hold it. |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
/unhold |
| if len(exprs) == 0 { | ||
| return nil | ||
| } | ||
| for _, expr := range exprs { |
There was a problem hiding this comment.
how about move to here, after all, your func name says it will reuse...
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AilinKid, hawkingrei The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/retest |
|
/retest |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-6.5-20241112-v6.5.11 #64006 +/- ##
=================================================================
Coverage ? 73.6241%
=================================================================
Files ? 1097
Lines ? 352967
Branches ? 0
=================================================================
Hits ? 259869
Misses ? 76376
Partials ? 16722 🚀 New features to boost your workflow:
|
fa8e9d9
into
pingcap:release-6.5-20241112-v6.5.11
This is an automated cherry-pick of #63829
What problem does this PR solve?
Issue Number: close #63810
Problem Summary:
What changed and how does it work?
Previously, we didn't pay attention to reusing the slices of columns, which led to a lot of memory allocation here. We have specially optimized this.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.