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, util: rename original List to ListInMemory and add a new interface List #13353

Merged
merged 5 commits into from
Nov 11, 2019

Conversation

fzhedu
Copy link
Contributor

@fzhedu fzhedu commented Nov 11, 2019

What problem does this PR solve?

Add a new interface to refactor code in #12882

What is changed and how it works?

Rename original List to ListInMemory and add a new interface List

Check List

Tests

  • No code

Code changes

  • Has exported function/method change
  • Has interface methods change

Side effects

N/A

Related changes

N/A

Release note

N/A

@fzhedu fzhedu added the type/enhancement The issue or PR belongs to an enhancement. label Nov 11, 2019
func NewList(fieldTypes []*types.FieldType, initChunkSize, maxChunkSize int) *List {
l := &List{
// NewList creates a new ListInMemory with field types, init chunk size and max chunk size.
func NewList(fieldTypes []*types.FieldType, initChunkSize, maxChunkSize int) *ListInMemory {
Copy link
Contributor

Choose a reason for hiding this comment

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

NewListInMemory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@XuHuaiyu XuHuaiyu changed the title rename original List to ListInMemory and add a new interface List executor, util: rename original List to ListInMemory and add a new interface List Nov 11, 2019
Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Nov 11, 2019

Codecov Report

Merging #13353 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #13353   +/-   ##
===========================================
  Coverage   80.2193%   80.2193%           
===========================================
  Files           469        469           
  Lines        112610     112610           
===========================================
  Hits          90335      90335           
  Misses        15295      15295           
  Partials       6980       6980

@fzhedu fzhedu requested a review from XuHuaiyu November 11, 2019 07:37
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

@XuHuaiyu XuHuaiyu added component/util status/LGT2 Indicates that a PR has LGTM 2. status/can-merge Indicates a PR has been approved by a committer. labels Nov 11, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

Your auto merge job has been accepted, waiting for 13330

@fzhedu
Copy link
Contributor Author

fzhedu commented Nov 11, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

Your auto merge job has been accepted, waiting for 13330

@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

@fzhedu merge failed.

@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

/run-all-tests

@sre-bot sre-bot merged commit 2b5f81a into pingcap:master Nov 11, 2019
fzhedu added a commit that referenced this pull request Nov 11, 2019
ngaut pushed a commit that referenced this pull request Nov 11, 2019
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/util 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.

4 participants