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

chunk: change offset type to int64 #10348

Merged
merged 4 commits into from May 5, 2019

Conversation

zz-jason
Copy link
Member

@zz-jason zz-jason commented May 5, 2019

What problem does this PR solve?

The max-length of a string field can be 6M, a typical batch size for Chunk is 1024, which is 1K. That is to say, the memory offset of a string column can be 6GB, which exceeds int32

What is changed and how it works?

change offset type from int32 to int64

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch
  • Need to be included in the release note

@codecov
Copy link

codecov bot commented May 5, 2019

Codecov Report

Merging #10348 into master will increase coverage by 0.0012%.
The diff coverage is 96%.

@@               Coverage Diff                @@
##             master     #10348        +/-   ##
================================================
+ Coverage   77.6755%   77.6768%   +0.0012%     
================================================
  Files           411        411                
  Lines         85440      85427        -13     
================================================
- Hits          66366      66357         -9     
+ Misses        14113      14109         -4     
  Partials       4961       4961

Copy link
Contributor

@winkyao winkyao 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 sig/execution SIG execution status/LGT1 Indicates that a PR has LGTM 1. type/bug-fix This PR fixes a bug. labels May 5, 2019
@zz-jason
Copy link
Member Author

zz-jason commented May 5, 2019

/run-all-tests

@zz-jason zz-jason requested review from alivxxx and XuHuaiyu May 5, 2019 09:33
Copy link
Contributor

@alivxxx alivxxx 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 May 5, 2019
@zz-jason zz-jason merged commit 68e7b00 into pingcap:master May 5, 2019
@zz-jason zz-jason deleted the bugfix/column-offset-int64 branch May 5, 2019 09:38
Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

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/bug-fix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants