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

opt: fix bug in placeholder fast path #65018

Merged
merged 1 commit into from
May 12, 2021

Conversation

RaduBerinde
Copy link
Member

This commit fixes a bug in the placeholder fast path where we try to
constrain the primary index by more than the primary key columns (we
were using the wrong column count).

Fixes #64765.

Release note (bug fix): fixed an "index out of range" internal error
with certain simple queries.

This commit fixes a bug in the placeholder fast path where we try to
constrain the primary index by more than the primary key columns (we
were using the wrong column count).

Fixes cockroachdb#64765.

Release note (bug fix): fixed an "index out of range" internal error
with certain simple queries.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@mgartner mgartner left a comment

Choose a reason for hiding this comment

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

:lgtm: Yikes, glad we found this!

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rytaft)

@RaduBerinde
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented May 12, 2021

Build succeeded:

@craig craig bot merged commit 7f257d4 into cockroachdb:master May 12, 2021
@RaduBerinde RaduBerinde deleted the fix-fastpath-invalid branch May 14, 2021 19:39
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.

sql/opt: index out of bounds error from generateScanSpans when using placeholders
3 participants