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

executor: handle unsigned primary key for fast analyze #11074

Merged
merged 2 commits into from
Jul 4, 2019

Conversation

alivxxx
Copy link
Contributor

@alivxxx alivxxx commented Jul 4, 2019

What problem does this PR solve?

Currently, fast analyze treat all handle column as signed int64, it will produce wrong stats if there are values greater than MaxInt64.

What is changed and how it works?

If the primary key has unsigned flag, convert the handle id to unsigned uint64.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Side effects

  • None

Related changes

  • Need to cherry-pick to the release branch

@alivxxx alivxxx added type/bugfix This PR fixes a bug. sig/execution SIG execution needs-cherry-pick-3.0 labels Jul 4, 2019
@alivxxx alivxxx requested review from zz-jason, winoros and lzmhhh123 July 4, 2019 06:17
@codecov
Copy link

codecov bot commented Jul 4, 2019

Codecov Report

Merging #11074 into master will decrease coverage by 0.0873%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #11074        +/-   ##
================================================
- Coverage   80.9954%   80.9081%   -0.0874%     
================================================
  Files           419        418         -1     
  Lines         89384      89195       -189     
================================================
- Hits          72397      72166       -231     
- Misses        11759      11795        +36     
- Partials       5228       5234         +6

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 4, 2019
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

@alivxxx alivxxx added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 4, 2019
@alivxxx
Copy link
Contributor Author

alivxxx commented Jul 4, 2019

/run-all-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution 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