Skip to content
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

Merged
merged 19 commits into from
Dec 24, 2020

Conversation

time-and-fate
Copy link
Member

@time-and-fate time-and-fate commented Dec 15, 2020

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

  • Unit test
  • Integration test

Release note

  • no release note.

@time-and-fate time-and-fate requested review from a team as code owners December 15, 2020 09:30
@time-and-fate time-and-fate requested review from qw4990 and hanfei1991 and removed request for a team December 15, 2020 09:30
@time-and-fate
Copy link
Member Author

/uncc hanfei1991

@ti-srebot ti-srebot removed the request for review from hanfei1991 December 15, 2020 09:30
@time-and-fate
Copy link
Member Author

/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)
Copy link
Member Author

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

statistics/builder.go Outdated Show resolved Hide resolved
statistics/histogram.go Outdated Show resolved Hide resolved
statistics/histogram.go Outdated Show resolved Hide resolved
@qw4990 qw4990 added the type/enhancement The issue or PR belongs to an enhancement. label Dec 17, 2020
statistics/builder.go Outdated Show resolved Hide resolved
Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest, LGTM

statistics/builder.go Outdated Show resolved Hide resolved
Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 23, 2020
@time-and-fate
Copy link
Member Author

/run-all-tests

Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Dec 24, 2020
@winoros
Copy link
Member

winoros commented Dec 24, 2020

/merge

@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. status/can-merge Indicates a PR has been approved by a committer. labels Dec 24, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/statistics sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor column stats
4 participants