-
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, executor: refactor statistics on columns #21817
Conversation
/uncc hanfei1991 |
/cc winoros |
@@ -275,7 +275,7 @@ func (s *testStatisticsSuite) TestBuild(c *C) { | |||
count = col.BetweenRowCount(types.NewIntDatum(3000), types.NewIntDatum(3500)) | |||
c.Check(int(count), Equals, 4994) | |||
count = col.lessRowCount(types.NewIntDatum(1)) | |||
c.Check(int(count), Equals, 9) | |||
c.Check(int(count), Equals, 5) |
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.
This result changed because a small bug about float precision is fixed in statistics/builder.go
L149
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.
Rest, LGTM
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.
LGTM
/run-all-tests |
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.
lgtm
/merge |
/run-all-tests |
What problem does this PR solve?
Issue Number: close #21537
What is changed and how it works?
Please see #21537 for details.
Check List
Tests
Release note