-
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
executor, statistics: dump stats delta before analyze #34895
base: master
Are you sure you want to change the base?
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/cc @qw4990 |
@@ -1067,7 +1067,7 @@ func TestQueryFeedbackForPartition(t *testing.T) { | |||
{ | |||
// test primary key feedback | |||
sql: "select * from t where t.a <= 5", | |||
hist: "column:1 ndv:2 totColSize:2\n" + | |||
hist: "column:1 ndv:2 totColSize:0\n" + |
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.
After analyze, totColSize
is 0
. Then it becomes 2
after updating feedback. However, when I dump stats delta before analyze, totColSize
is always 0
. I'm not very clear why and still investigating it...
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/5009fec4ffa01447fb6e870a6a83cac933abbf01 |
/run-mysql-test |
@xuyifangreeneyes mysql-test still failed. :( The |
/run-mysql-test |
2 similar comments
/run-mysql-test |
/run-mysql-test |
/run-mysql-test |
PR needs rebase. Instructions 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 kubernetes/test-infra repository. |
@xuyifangreeneyes: The following test failed, say
Full PR test history. Your PR dashboard. Instructions 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
@xuyifangreeneyes: The following test failed, say
Instructions 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #34895 +/- ##
================================================
+ Coverage 62.7226% 62.7269% +0.0042%
================================================
Files 848 848
Lines 276852 276905 +53
================================================
+ Hits 173649 173694 +45
Misses 89428 89428
- Partials 13775 13783 +8 |
What problem does this PR solve?
Issue Number: ref #22934
Problem Summary:
What is changed and how it works?
Before executing Analyze, we dump stats delta of the tables that are going to be analyzed. Though it cannot solve the problem in #22934 completely when there are multiple TiDB instances, it can handle the case when insertion and analyze are executed on the same TiDB instance.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.