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

sql: preserve point lookups in PartitionSpans #68809

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented Aug 12, 2021

Previously, PartitionSpans function would convert the point lookups
into a single key spans. This is suboptimal since GetRequests are
better, so this commit fixes that oversight.

Release note: None

@yuzefovich yuzefovich requested review from jordanlewis and a team August 12, 2021 18:07
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, `PartitionSpans` function would convert the point lookups
into a single key spans. This is suboptimal since GetRequests are
better, so this commit fixes that oversight.

Release note: None
Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

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

:lgtm:

Is there already a test somewhere that we actually use a GetRequest if the span has no end key?

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis)

@yuzefovich
Copy link
Member Author

GetRequests usage was added by Jordan recently in #61583, and that PR did add the checks to make sure that Get requests are actually used.

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 17, 2021

Build succeeded:

@craig craig bot merged commit be0b705 into cockroachdb:master Aug 17, 2021
@yuzefovich yuzefovich deleted the point-lookups branch August 17, 2021 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants