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 internal error when aggregating on a virtual table #44692

Merged
merged 1 commit into from Feb 4, 2020

Conversation

RaduBerinde
Copy link
Member

Recently introduced logic allows projecting any columns if we are
grouping by the PK of the table. This code generates an internal error
for virtual tables, which have no primary index. Note that in this
case we expect an error.

Fixes #44659.

Release note (bug fix): fixed "no indexes" internal error in some
cases when we GROUP BY on a virtual table.

Recently introduced logic allows projecting any columns if we are
grouping by the PK of the table. This code generates an internal error
for virtual tables, which have no primary index. Note that in this
case we expect an error.

Fixes cockroachdb#44659.

Release note (bug fix): fixed "no indexes" internal error in some
cases when we GROUP BY on a virtual table.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@justinj justinj left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rytaft)

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:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 2 of 0 LGTMs obtained

@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 4, 2020

Build failed (retrying...)

craig bot pushed a commit that referenced this pull request Feb 4, 2020
44692: opt: fix internal error when aggregating on a virtual table r=RaduBerinde a=RaduBerinde

Recently introduced logic allows projecting any columns if we are
grouping by the PK of the table. This code generates an internal error
for virtual tables, which have no primary index. Note that in this
case we expect an error.

Fixes #44659.

Release note (bug fix): fixed "no indexes" internal error in some
cases when we GROUP BY on a virtual table.

Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Feb 4, 2020

Build succeeded

@craig craig bot merged commit 321e72d into cockroachdb:master Feb 4, 2020
@RaduBerinde RaduBerinde deleted the fix-vtable-group-by branch February 8, 2020 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

opt: "no indexes" panic in optVirtualTable
4 participants