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

stats: fix estimation for time equal conditions #11511

Merged
merged 2 commits into from
Jul 29, 2019

Conversation

alivxxx
Copy link
Contributor

@alivxxx alivxxx commented Jul 29, 2019

What problem does this PR solve?

The estimation for time values is wrong.

What is changed and how it works?

The CM Sketch is built from tablecodec.EncodeValue, but the query was using codec.EncodeValue, and their encoding result is not the same for time types.

Check List

Tests

  • Integration test

Code changes

  • Has exported function/method change

Side effects

  • None

Related changes

  • Need to cherry-pick to the release branch

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 29, 2019
@alivxxx
Copy link
Contributor Author

alivxxx commented Jul 29, 2019

/run-all-tests

Copy link
Contributor

@lzmhhh123 lzmhhh123 left a comment

Choose a reason for hiding this comment

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

LGTM.

@lzmhhh123 lzmhhh123 added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 29, 2019
@zz-jason zz-jason merged commit b17848b into pingcap:master Jul 29, 2019
@alivxxx alivxxx deleted the time-estimation branch July 29, 2019 11:57
@sre-bot
Copy link
Contributor

sre-bot commented Jul 29, 2019

cherry pick to release-2.1 failed

@sre-bot
Copy link
Contributor

sre-bot commented Jul 29, 2019

cherry pick to release-3.0 in PR #11512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/statistics status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants