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

release-20.1: opt: bugfix to virtual table scans #50843

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented Jun 30, 2020

Backport 1/1 commits from #50682.

/cc @cockroachdb/release


Previously, the optimizer exposed the hidden virtual table primary key
column from scans, even though this column has no value and is not
usable. This caused issues with some complex metadata queries.

Now, the optimizer doesn't advertise this column, resolving the issue.

Closes #50157.

Release note (bug fix): some pg_catalog queries that previously returned
an error like "crdb_internal_vtable_pk column not allowed" now work
again.

@rafiss rafiss requested a review from jordanlewis June 30, 2020 20:44
@rafiss rafiss requested a review from a team as a code owner June 30, 2020 20:44
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, the optimizer exposed the hidden virtual table primary key
column from scans, even though this column has no value and is not
usable. This caused issues with some complex metadata queries.

Now, the optimizer doesn't advertise this column, resolving the issue.

Release note (bug fix): some pg_catalog queries that previously returned
an error like "crdb_internal_vtable_pk column not allowed" now work
again.
@rafiss
Copy link
Collaborator Author

rafiss commented Jun 30, 2020

@jordanlewis it looks like I actually had to remove the diff in pkg/sql/opt/memo/testdata/logprops/virtual-scan

Does that make sense to you?

@rafiss rafiss requested a review from jordanlewis June 30, 2020 21:33
@jordanlewis
Copy link
Member

No idea :/ @RaduBerinde what do you think?

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

LGTM
There have been various changes to FDs, it looks like the old FDs happened to not include the column.

@rafiss rafiss merged commit 0a934eb into cockroachdb:release-20.1 Jul 1, 2020
@rafiss rafiss deleted the backport20.1-50682 branch July 1, 2020 16:07
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.

None yet

4 participants