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

util/ranger: change BuildRange to build column/index/table range #5509

Merged
merged 3 commits into from Dec 27, 2017

Conversation

tiancaiamao
Copy link
Contributor

@shenli
Copy link
Member

shenli commented Dec 26, 2017

Any benchmark result?

@coocood
Copy link
Member

coocood commented Dec 27, 2017

LGTM

@zimulala zimulala added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 27, 2017
if err != nil {
terror.Log(errors.Trace(err))
return nil, nil, nil
}
indexRanges = ranger.Ranges2NewRanges(ranges)
indexRanges = ranges
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove it, we can return ranges directly.

if err != nil {
return nil, errors.Trace(err)
}
is.Ranges = ranger.Ranges2NewRanges(ranges)
is.Ranges = ranges
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this line? And we can remove ranges.

if err != nil {
return nil, errors.Trace(err)
}
ts.Ranges = ranges
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

winkyao
winkyao previously approved these changes Dec 27, 2017
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

@winkyao winkyao dismissed their stale review December 27, 2017 03:04

plz address comment

@tiancaiamao tiancaiamao removed the status/LGT1 Indicates that a PR has LGTM 1. label Dec 27, 2017
Copy link
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

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

LGTM

@zimulala zimulala added the status/LGT2 Indicates that a PR has LGTM 2. label Dec 27, 2017
@zimulala
Copy link
Contributor

/run-all-tests

@tiancaiamao
Copy link
Contributor Author

/run-sqllogic-test

@tiancaiamao tiancaiamao merged commit b901867 into pingcap:master Dec 27, 2017
@tiancaiamao tiancaiamao deleted the build-range branch December 27, 2017 12:16
@shenli
Copy link
Member

shenli commented Dec 27, 2017

Any benchmark result?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants