-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
statistics: avoid stats meta full load after table analysis #57756
statistics: avoid stats meta full load after table analysis #57756
Conversation
/retest |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #57756 +/- ##
================================================
+ Coverage 73.1430% 73.8288% +0.6858%
================================================
Files 1671 1701 +30
Lines 460633 468749 +8116
================================================
+ Hits 336921 346072 +9151
+ Misses 103006 101245 -1761
- Partials 20706 21432 +726
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔢 Self-check (PR reviewed by myself and ready for feedback.)
@@ -99,6 +99,14 @@ func (e *AnalyzeExec) Next(ctx context.Context, _ *chunk.Chunk) error { | |||
if len(tasks) == 0 { | |||
return nil | |||
} | |||
tableAndPartitionIDs := make([]int64, 0, len(tasks)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can get this information from the previous function, but I’d prefer not to introduce extra refactoring in this PR since we need to cherry-pick it to 8.5.
Signed-off-by: Rustin170506 <tech@rustin.me>
Signed-off-by: Rustin170506 <tech@rustin.me>
Signed-off-by: Rustin170506 <tech@rustin.me>
Signed-off-by: Rustin170506 <tech@rustin.me>
675167d
to
519a0d6
Compare
Signed-off-by: Rustin170506 <tech@rustin.me>
Signed-off-by: Rustin170506 <tech@rustin.me>
fa1f501
to
8576b1e
Compare
Signed-off-by: Rustin170506 <tech@rustin.me>
Signed-off-by: Rustin170506 <tech@rustin.me>
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔢 Self-check (PR reviewed by myself and ready for feedback.)
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others LGTM.
Signed-off-by: Rustin170506 <tech@rustin.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: time-and-fate, winoros The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: Rustin170506 <tech@rustin.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔢 Self-check (PR reviewed by myself and ready for feedback.)
/unhold |
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #57631
Problem Summary:
See more at #57631 (comment)
We need to support updating the stats of only a few tables within the update function. This will help reduce the function's duration after the table analysis is completed.
The analysis duration is stable:
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.